Show / Hide Table of Contents

Class CompositionInitializer

Provides static access to methods for parts to satisfy imports.

Inheritance
System.Object
CompositionInitializer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.ComponentModel.Composition
Assembly: System.ComponentModel.Composition.Initialization.dll
Syntax
public static class CompositionInitializer

Methods

| Improve this Doc View Source

SatisfyImports(ComposablePart)

Fills the imports of the specified part.

Declaration
public static void SatisfyImports(ComposablePart part)
Parameters
Type Name Description
System.ComponentModel.Composition.Primitives.ComposablePart part

The part to fill the imports of.

Exceptions
Type Condition
System.ArgumentNullException

part is null.

System.ArgumentException

part contains exports.

System.ComponentModel.Composition.ChangeRejectedException

One or more of the imports of part could not be satisfied.

System.ComponentModel.Composition.CompositionException

One or more of the imports of part caused a composition error.

| Improve this Doc View Source

SatisfyImports(Object)

Fills the imports of the specified attributed part.

Declaration
public static void SatisfyImports(object attributedPart)
Parameters
Type Name Description
System.Object attributedPart

The attributed part to fill the imports of.

Exceptions
Type Condition
System.ArgumentNullException

attributedPart is null.

System.ArgumentException

attributedPart contains exports.

System.ComponentModel.Composition.ChangeRejectedException

One or more of the imports of attributedPart could not be satisfied.

System.ComponentModel.Composition.CompositionException

One or more of the imports of attributedPart caused a composition error.

  • Improve this Doc
  • View Source