InheritedExportAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 InheritedExportAttribute 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| InheritedExportAttribute() |
初始化 InheritedExportAttribute 类的新实例。 |
| InheritedExportAttribute(String) |
使用指定的协定名称初始化类的新实例 InheritedExportAttribute 。 |
| InheritedExportAttribute(Type) |
使用指定的协定类型初始化类的新实例 InheritedExportAttribute 。 |
| InheritedExportAttribute(String, Type) |
使用指定的协定名称和类型初始化类的新实例 InheritedExportAttribute 。 |
InheritedExportAttribute()
- Source:
- InheritedExportAttribute.cs
- 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
- 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
- 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
协定的类型。
注解
协定名称是调用AttributedModelServices.GetContractName(Type)contractType的结果。
默认协定名称是调用 AttributedModelServices.GetContractName(Type) 用此属性标记的类型本身的结果。
协定名称使用区分大小写的非语言比较进行比较 StringComparer.Ordinal。
适用于
InheritedExportAttribute(String, Type)
- Source:
- InheritedExportAttribute.cs
- 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。