ExportConventionBuilder.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 the contract type for the export. |
AsContractType<T>() |
Specifies the contract type for the export as a generic type. |
AsContractType(Type)
- Source:
- ExportConventionBuilder.cs
- Source:
- ExportConventionBuilder.cs
- Source:
- ExportConventionBuilder.cs
- Source:
- ExportConventionBuilder.cs
Specifies the contract type for the export.
public:
System::Composition::Convention::ExportConventionBuilder ^ AsContractType(Type ^ type);
public System.Composition.Convention.ExportConventionBuilder AsContractType (Type type);
member this.AsContractType : Type -> System.Composition.Convention.ExportConventionBuilder
Public Function AsContractType (type As Type) As ExportConventionBuilder
Parameters
- type
- Type
The type.
Returns
An export builder containing the contract type that allows for further configuration.
Applies to
AsContractType<T>()
- Source:
- ExportConventionBuilder.cs
- Source:
- ExportConventionBuilder.cs
- Source:
- ExportConventionBuilder.cs
- Source:
- ExportConventionBuilder.cs
Specifies the contract type for the export as a generic type.
public:
generic <typename T>
System::Composition::Convention::ExportConventionBuilder ^ AsContractType();
public System.Composition.Convention.ExportConventionBuilder AsContractType<T> ();
member this.AsContractType : unit -> System.Composition.Convention.ExportConventionBuilder
Public Function AsContractType(Of T) () As ExportConventionBuilder
Type Parameters
- T
The generic type.
Returns
An export builder containing the contract type that allows for further configuration.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET