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.ExportBuilder
Public Function AsContractType (type As Type) As ExportBuilder
Parameters
- 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.ExportBuilder
Public Function AsContractType(Of T) () As ExportBuilder
Type Parameters
- T
The type of contract to use.
Returns
The current object, to allow chaining.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.