Share via


CompositionDependency Class

Definition

Represents a dependency that a part must have in order to fulfill an ExportDescriptorPromise. This class is used by the composition engine during initialization to determine whether the composition can be made, and if not, what error to provide.

public ref class CompositionDependency
public class CompositionDependency
type CompositionDependency = class
Public Class CompositionDependency
Inheritance
CompositionDependency

Properties

Contract

Gets the contract required by the dependency.

IsPrerequisite

Gets a value indicating whether the dependency is a prerequisite that must be satisfied before any exports can be retrieved from the dependent part.

Site

Gets a marker used to identify the dependency among those on the dependent part.

Target

Gets the export descriptor promise that the dependecy is on.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(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.

Applies to