ExportDefinition Constructors
Definition
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 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應