ExportBuilder.AsContractType 方法

定義

多載

名稱 Description
AsContractType(Type)

規定出口應使用該合約類型。

AsContractType<T>()

規定出口應使用該合約類型。

AsContractType(Type)

來源:
ExportBuilder.cs
來源:
ExportBuilder.cs
來源:
ExportBuilder.cs
來源:
ExportBuilder.cs

規定出口應使用該合約類型。

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

參數

type
Type

使用合約類型。

傳回

目前的物件,允許連鎖。

例外狀況

typenull

適用於

AsContractType<T>()

來源:
ExportBuilder.cs
來源:
ExportBuilder.cs
來源:
ExportBuilder.cs
來源:
ExportBuilder.cs

規定出口應使用該合約類型。

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

類型參數

T

該使用的合約類型。

傳回

目前的物件,允許連鎖。

適用於