Share via


InheritedExportAttribute 构造函数

定义

初始化 InheritedExportAttribute 类的新实例。

重载

InheritedExportAttribute()

初始化 InheritedExportAttribute 类的新实例。

InheritedExportAttribute(String)

使用指定的协定名称初始化 InheritedExportAttribute 类的新实例。

InheritedExportAttribute(Type)

使用指定的协定类型初始化 InheritedExportAttribute 类的新实例。

InheritedExportAttribute(String, Type)

使用指定的协定名称和类型初始化 InheritedExportAttribute 类的新实例。

InheritedExportAttribute()

Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs

初始化 InheritedExportAttribute 类的新实例。

public:
 InheritedExportAttribute();
public InheritedExportAttribute ();
Public Sub New ()

注解

默认协定名称是在使用此属性标记的类型本身上调用 AttributedModelServices.GetContractName(Type) 的结果。

使用 区分大小写的非语言比较来 StringComparer.Ordinal比较协定名称。

适用于

InheritedExportAttribute(String)

Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs

使用指定的协定名称初始化 InheritedExportAttribute 类的新实例。

public:
 InheritedExportAttribute(System::String ^ contractName);
public InheritedExportAttribute (string contractName);
public InheritedExportAttribute (string? contractName);
new System.ComponentModel.Composition.InheritedExportAttribute : string -> System.ComponentModel.Composition.InheritedExportAttribute
Public Sub New (contractName As String)

参数

contractName
String

协定的名称。

注解

默认协定名称是在使用此属性标记的类型本身上调用 AttributedModelServices.GetContractName(Type) 的结果。

使用 区分大小写的非语言比较来 StringComparer.Ordinal比较协定名称。

适用于

InheritedExportAttribute(Type)

Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs

使用指定的协定类型初始化 InheritedExportAttribute 类的新实例。

public:
 InheritedExportAttribute(Type ^ contractType);
public InheritedExportAttribute (Type contractType);
public InheritedExportAttribute (Type? contractType);
new System.ComponentModel.Composition.InheritedExportAttribute : Type -> System.ComponentModel.Composition.InheritedExportAttribute
Public Sub New (contractType As Type)

参数

contractType
Type

协定的类型。

注解

协定名称是在 上contractType调用 AttributedModelServices.GetContractName(Type) 的结果。

默认协定名称是在使用此属性标记的类型本身上调用 AttributedModelServices.GetContractName(Type) 的结果。

使用 区分大小写的非语言比较来 StringComparer.Ordinal比较协定名称。

适用于

InheritedExportAttribute(String, Type)

Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs
Source:
InheritedExportAttribute.cs

使用指定的协定名称和类型初始化 InheritedExportAttribute 类的新实例。

public:
 InheritedExportAttribute(System::String ^ contractName, Type ^ contractType);
public InheritedExportAttribute (string contractName, Type contractType);
public InheritedExportAttribute (string? contractName, Type? contractType);
new System.ComponentModel.Composition.InheritedExportAttribute : string * Type -> System.ComponentModel.Composition.InheritedExportAttribute
Public Sub New (contractName As String, contractType As Type)

参数

contractName
String

协定的名称。

contractType
Type

协定的类型。

注解

默认协定名称是在使用此属性标记的类型本身上调用 AttributedModelServices.GetContractName(Type) 的结果。

使用 区分大小写的非语言比较来 StringComparer.Ordinal比较协定名称。

适用于