ImportBuilder.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 import should use the given contract type. |
AsContractType<T>() |
Specifies that the import should use the given contract type. |
AsContractType(Type)
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
Specifies that the import should use the given contract type.
public:
System::ComponentModel::Composition::Registration::ImportBuilder ^ AsContractType(Type ^ type);
public System.ComponentModel.Composition.Registration.ImportBuilder AsContractType (Type type);
member this.AsContractType : Type -> System.ComponentModel.Composition.Registration.ImportBuilder
Public Function AsContractType (type As Type) As ImportBuilder
Parameters
- type
- Type
The contract type to use.
Returns
The current object, to allow chaining.
Exceptions
type
is null
.
Applies to
AsContractType<T>()
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
Specifies that the import should use the given contract type.
public:
generic <typename T>
System::ComponentModel::Composition::Registration::ImportBuilder ^ AsContractType();
public System.ComponentModel.Composition.Registration.ImportBuilder AsContractType<T> ();
member this.AsContractType : unit -> System.ComponentModel.Composition.Registration.ImportBuilder
Public Function AsContractType(Of T) () As ImportBuilder
Type Parameters
- T
The type of contract to use.
Returns
The current object, to allow chaining.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.