次の方法で共有


ExportConventionBuilder.AsContractType Method

Definition

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