ExportDescriptorPromise Constructor (CompositionContract^, String^, Boolean, Func<IEnumerable<CompositionDependency^>^>^, Func<IEnumerable<CompositionDependency^>^, ExportDescriptor^>^)

.NET Framework (current version)
 

Initializes a new instance of the ExportDescriptorPromise class.

Namespace:   System.Composition.Hosting.Core
Assembly:  System.Composition.Hosting (in System.Composition.Hosting.dll)

public:
ExportDescriptorPromise(
	CompositionContract^ contract,
	String^ origin,
	bool isShared,
	Func<IEnumerable<CompositionDependency^>^>^ dependencies,
	Func<IEnumerable<CompositionDependency^>^, ExportDescriptor^>^ getDescriptor
)

Parameters

contract
Type: System.Composition.Hosting.Core::CompositionContract^

The promised contract.

origin
Type: System::String^

A description of the promise's origin.

isShared
Type: System::Boolean

A value that indicates whether the promise is shared.

dependencies
Type: System::Func<IEnumerable<CompositionDependency^>^>^

The dependencies of the promise.

getDescriptor
Type: System::Func<IEnumerable<CompositionDependency^>^, ExportDescriptor^>^

A function that provides the promised descriptor.

Return to top
Show: