ExportBuilder.AsContractType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
要使用的协定类型。
返回
允许链接的当前对象。
例外
type
为 null
。
适用于
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
要使用的协定的类型。
返回
允许链接的当前对象。