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
- 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
- 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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET