共用方式為


ExportBuilder.AsContractType 方法

定義

多載

AsContractType(Type)

指定匯出應使用指定的合約類型。

AsContractType<T>()

指定匯出應使用指定的合約類型。

AsContractType(Type)

來源:
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

指定匯出應使用指定的合約類型。

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

要使用的合約的型別。

傳回

目前的物件,用於允許鏈結。

適用於