ExportBuilder.AsContractType Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AsContractType(Type) | Specifies that the export should use the given contract type. | 
| AsContractType<T>() | Specifies that the export should use the given contract type. | 
AsContractType(Type)
- Source:
- ExportBuilder.cs
- Source:
- ExportBuilder.cs
- Source:
- ExportBuilder.cs
Specifies that the export should use the given contract type.
public:
 System::ComponentModel::Composition::Registration::ExportBuilder ^ AsContractType(Type ^ type);public System.ComponentModel.Composition.Registration.ExportBuilder AsContractType(Type type);member this.AsContractType : Type -> System.ComponentModel.Composition.Registration.ExportBuilderPublic Function AsContractType (type As Type) As ExportBuilderParameters
- type
- Type
The contract type to use.
Returns
The current object, to allow chaining.
Exceptions
type is null.
Applies to
AsContractType<T>()
- Source:
- ExportBuilder.cs
- Source:
- ExportBuilder.cs
- Source:
- ExportBuilder.cs
Specifies that the export should use the given contract type.
public:
generic <typename T>
 System::ComponentModel::Composition::Registration::ExportBuilder ^ AsContractType();public System.ComponentModel.Composition.Registration.ExportBuilder AsContractType<T>();member this.AsContractType : unit -> System.ComponentModel.Composition.Registration.ExportBuilderPublic Function AsContractType(Of T) () As ExportBuilderType Parameters
- T
The type of contract to use.
Returns
The current object, to allow chaining.