次の方法で共有


Export コンストラクター

定義

Export クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
Export()

Export クラスの新しいインスタンスを初期化します。

Export(ExportDefinition, Func<Object>)

指定したエクスポート定義とエクスポートされたオブジェクト ゲッターを使用して、 Export クラスの新しいインスタンスを初期化します。

Export(String, Func<Object>)

指定したコントラクト名とエクスポートされた値ゲッターを使用して、 Export クラスの新しいインスタンスを初期化します。

Export(String, IDictionary<String,Object>, Func<Object>)

指定したコントラクト名、メタデータ、およびエクスポートされた値ゲッターを使用して、 Export クラスの新しいインスタンスを初期化します。

Export()

ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs

Export クラスの新しいインスタンスを初期化します。

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

注釈

このコンストラクターを呼び出す派生型は、 Definition プロパティと GetExportedValueCore メソッドをオーバーライドする必要があります。

適用対象

Export(ExportDefinition, Func<Object>)

ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs

指定したエクスポート定義とエクスポートされたオブジェクト ゲッターを使用して、 Export クラスの新しいインスタンスを初期化します。

public:
 Export(System::ComponentModel::Composition::Primitives::ExportDefinition ^ definition, Func<System::Object ^> ^ exportedValueGetter);
public Export(System.ComponentModel.Composition.Primitives.ExportDefinition definition, Func<object?> exportedValueGetter);
public Export(System.ComponentModel.Composition.Primitives.ExportDefinition definition, Func<object> exportedValueGetter);
new System.ComponentModel.Composition.Primitives.Export : System.ComponentModel.Composition.Primitives.ExportDefinition * Func<obj> -> System.ComponentModel.Composition.Primitives.Export
Public Sub New (definition As ExportDefinition, exportedValueGetter As Func(Of Object))

パラメーター

definition
ExportDefinition

Export オブジェクトが満たすコントラクトを記述するオブジェクト。

exportedValueGetter
Func<Object>

Exportのエクスポートされたオブジェクトを作成するために呼び出されるメソッド。 これにより、 Value プロパティが呼び出されるまで、オブジェクトの作成が遅れます。

例外

definitionnullです。

-又は-

exportedValueGetternullです。

適用対象

Export(String, Func<Object>)

ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs

指定したコントラクト名とエクスポートされた値ゲッターを使用して、 Export クラスの新しいインスタンスを初期化します。

public:
 Export(System::String ^ contractName, Func<System::Object ^> ^ exportedValueGetter);
public Export(string contractName, Func<object?> exportedValueGetter);
public Export(string contractName, Func<object> exportedValueGetter);
new System.ComponentModel.Composition.Primitives.Export : string * Func<obj> -> System.ComponentModel.Composition.Primitives.Export
Public Sub New (contractName As String, exportedValueGetter As Func(Of Object))

パラメーター

contractName
String

Export オブジェクトのコントラクト名。

exportedValueGetter
Func<Object>

Exportのエクスポートされたオブジェクトを作成するために呼び出されるメソッド。 これにより、 Value メソッドが呼び出されるまで、オブジェクトの作成が遅れます。

例外

contractNamenullです。

-又は-

exportedValueGetternullです。

contractName は空の文字列 ("") です。

適用対象

Export(String, IDictionary<String,Object>, Func<Object>)

ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs
ソース:
Export.cs

指定したコントラクト名、メタデータ、およびエクスポートされた値ゲッターを使用して、 Export クラスの新しいインスタンスを初期化します。

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

パラメーター

contractName
String

Export オブジェクトのコントラクト名。

metadata
IDictionary<String,Object>

Metadata プロパティを空の読み取り専用のIDictionary<TKey,TValue> オブジェクトに設定するExport オブジェクトまたはnullのメタデータ。

exportedValueGetter
Func<Object>

Exportのエクスポートされたオブジェクトを作成するために呼び出されるメソッド。 これにより、 Value メソッドが呼び出されるまで、オブジェクトの作成が遅れます。

例外

contractNamenullです。

-又は-

exportedValueGetternullです。

contractName は空の文字列 ("") です。

適用対象