Muokkaa

Jaa


ExportBuilder.AsContractType Method

Definition

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