InheritedExportAttribute Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the InheritedExportAttribute class.
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. |
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: