InheritedExportAttribute Конструкторы

Определение

Инициализирует новый экземпляр класса InheritedExportAttribute.

Перегрузки

Имя Описание
InheritedExportAttribute()

Инициализирует новый экземпляр класса InheritedExportAttribute.

InheritedExportAttribute(String)

Инициализирует новый экземпляр InheritedExportAttribute класса с указанным именем контракта.

InheritedExportAttribute(Type)

Инициализирует новый экземпляр InheritedExportAttribute класса с указанным типом контракта.

InheritedExportAttribute(String, Type)

Инициализирует новый экземпляр InheritedExportAttribute класса с указанным именем контракта и типом.

InheritedExportAttribute()

Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs

Инициализирует новый экземпляр класса InheritedExportAttribute.

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

Комментарии

Имя контракта по умолчанию является результатом вызова AttributedModelServices.GetContractName(Type) самого типа, помеченного этим атрибутом.

Имя контракта сравнивается с использованием нелингвистического сравнения StringComparer.Ordinalс учетом регистра.

Применяется к

InheritedExportAttribute(String)

Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
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)

Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
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)

Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
InheritedExportAttribute.cs
Исходный код:
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с учетом регистра.

Применяется к