CompositionDependency Class
Describes a dependency that a part must have. Used by the composition engine during initialization to determine whether the composition can be made, and if not, what error to provide.
Assembly: System.Composition.Hosting (in System.Composition.Hosting.dll)
| Name | Description | |
|---|---|---|
![]() | Contract | Gets or sets the contract required by the dependency. |
![]() | IsPrerequisite | Gets or sets a value that indicates whether the dependency is a prerequisite. |
![]() | Site | Gets a marker used to identify the dependency. |
![]() | Target | Gets or sets the export descriptor promise the dependency is on. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() ![]() | Missing(CompositionContract^, Object^) | Constructs a placeholder for a missing dependency. |
![]() ![]() | Oversupplied(CompositionContract^, IEnumerable<ExportDescriptorPromise^>^, Object^) | Constructs a placeholder for a dependency that has too many supplied values. |
![]() ![]() | Satisfied(CompositionContract^, ExportDescriptorPromise^, Boolean, Object^) | Constructs a dependency on the specified target. |
![]() | ToString() | Returns the string representation of this CompositionDependency object. (Overrides Object::ToString().) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



