ImportManyAttribute::ContractType Property

 

Gets the contract type of the export to import.

Namespace:   System.ComponentModel.Composition
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public:
property Type^ ContractType {
	virtual Type^ get() sealed;
	private: virtual void set(Type^ value) sealed;
}

Property Value

Type: System::Type^

The type of the export that this import is expecting. The default value is null, which means that the type will be obtained by looking at the type on the member that this import is attached to. If the type is Object, the import will match any exported type.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: