Modifier

Partager via


InheritedExportAttribute Constructors

Definition

Initializes a new instance of the InheritedExportAttribute class.

Overloads

InheritedExportAttribute()

Initializes a new instance of the InheritedExportAttribute class.

InheritedExportAttribute(String)

Initializes a new instance of the InheritedExportAttribute class with the specified contract name.

InheritedExportAttribute(Type)

Initializes a new instance of the InheritedExportAttribute class with the specified contract type.

InheritedExportAttribute(String, Type)

Initializes a new instance of the InheritedExportAttribute class with the specified contract name and type.

InheritedExportAttribute()

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

Initializes a new instance of the InheritedExportAttribute class.

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

Remarks

The default contract name is the result of calling AttributedModelServices.GetContractName(Type) on the type itself that is marked with this attribute.

The contract name is compared using a case-sensitive, non-linguistic comparison using StringComparer.Ordinal.

Applies to

InheritedExportAttribute(String)

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

Initializes a new instance of the InheritedExportAttribute class with the specified contract name.

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)

Parameters

contractName
String

The name of the contract.

Remarks

The default contract name is the result of calling AttributedModelServices.GetContractName(Type) on the type itself that this is marked with this attribute.

The contract name is compared using a case-sensitive, non-linguistic comparison using StringComparer.Ordinal.

Applies to

InheritedExportAttribute(Type)

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

Initializes a new instance of the InheritedExportAttribute class with the specified contract type.

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)

Parameters

contractType
Type

The type of the contract.

Remarks

The contract name is the result of calling AttributedModelServices.GetContractName(Type) on contractType.

The default contract name is the result of calling AttributedModelServices.GetContractName(Type) on the type itself that is marked with this attribute.

The contract name is compared using a case-sensitive, non-linguistic comparison using StringComparer.Ordinal.

Applies to

InheritedExportAttribute(String, Type)

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

Initializes a new instance of the InheritedExportAttribute class with the specified contract name and type.

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)

Parameters

contractName
String

The name of the contract.

contractType
Type

The type of the contract.

Remarks

The default contract name is the result of calling AttributedModelServices.GetContractName(Type) on the type itself that this is marked with this attribute.

The contract name is compared using a case-sensitive, non-linguistic comparison using StringComparer.Ordinal.

Applies to