ImportManyAttribute.ContractType Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets the contract type of the export to import.
Namespace: System.ComponentModel.Composition
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
Syntax
'Declaration
Public Property ContractType As Type
public Type ContractType { get; private set; }
Property Value
Type: System.Type
The type of the export that this import is expecting. The default value is nulla null reference (Nothing in Visual Basic), 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.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.