Edit

Bagikan melalui


ImportBuilder.AsContractType Method

Definition

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