Düzenle

Aracılığıyla paylaş


ExportDefinition Constructors

Definition

Initializes a new instance of the ExportDefinition class.

Overloads

ExportDefinition()

Initializes a new instance of the ExportDefinition class.

ExportDefinition(String, IDictionary<String,Object>)

Initializes a new instance of the ExportDefinition class with the specified contract name and metadata.

ExportDefinition()

Source:
ExportDefinition.cs
Source:
ExportDefinition.cs
Source:
ExportDefinition.cs
Source:
ExportDefinition.cs

Initializes a new instance of the ExportDefinition class.

protected:
 ExportDefinition();
protected ExportDefinition ();
Protected Sub New ()

Remarks

Derived types that call this constructor must override the ContractName property and optionally, the Metadata property. By default, Metadata returns an empty, read-only dictionary.

Applies to

ExportDefinition(String, IDictionary<String,Object>)

Source:
ExportDefinition.cs
Source:
ExportDefinition.cs
Source:
ExportDefinition.cs
Source:
ExportDefinition.cs

Initializes a new instance of the ExportDefinition class with the specified contract name and metadata.

public:
 ExportDefinition(System::String ^ contractName, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ metadata);
public ExportDefinition (string contractName, System.Collections.Generic.IDictionary<string,object?>? metadata);
public ExportDefinition (string contractName, System.Collections.Generic.IDictionary<string,object> metadata);
new System.ComponentModel.Composition.Primitives.ExportDefinition : string * System.Collections.Generic.IDictionary<string, obj> -> System.ComponentModel.Composition.Primitives.ExportDefinition
Public Sub New (contractName As String, metadata As IDictionary(Of String, Object))

Parameters

contractName
String

The contract name of the ExportDefinition object.

metadata
IDictionary<String,Object>

The metadata of the ExportDefinition or null to set the Metadata property to an empty, read-only IDictionary<TKey,TValue> object.

Exceptions

contractName is null.

contractName is an empty string ("").

Applies to