ExportBuilder.AsContractType 方法

定义

重载

AsContractType(Type)

指定导出是否应使用给定协定类型。

AsContractType<T>()

指定导出是否应使用给定协定类型。

AsContractType(Type)

Source:
ExportBuilder.cs
Source:
ExportBuilder.cs
Source:
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>()

Source:
ExportBuilder.cs
Source:
ExportBuilder.cs
Source:
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

要使用的协定的类型。

返回

允许链接的当前对象。

适用于