CompositionContract Constructor (Type^, String^, IDictionary<String^, Object^>^)

.NET Framework (current version)
 

Initializes a new instance of the CompositionContract class with the specified contract name, type, and metadata constraints.

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

public:
CompositionContract(
	Type^ contractType,
	String^ contractName,
	IDictionary<String^, Object^>^ metadataConstraints
)

Parameters

contractType
Type: System::Type^

The contract type.

contractName
Type: System::String^

The contract name.

metadataConstraints
Type: System.Collections.Generic::IDictionary<String^, Object^>^

A collection of contract metadata constraints.

Return to top
Show: