Bagikan melalui


Export Konstruktor

Definisi

Menginisialisasi instans baru kelas Export.

Overload

Export()

Menginisialisasi instans baru kelas Export.

Export(ExportDefinition, Func<Object>)

Menginisialisasi instans Export baru kelas dengan definisi ekspor yang ditentukan dan getter objek yang diekspor.

Export(String, Func<Object>)

Menginisialisasi instans Export baru kelas dengan nama kontrak yang ditentukan dan getter nilai yang diekspor.

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

Menginisialisasi instans Export baru kelas dengan nama kontrak, metadata, dan getter nilai yang diekspor yang ditentukan.

Export()

Sumber:
Export.cs
Sumber:
Export.cs
Sumber:
Export.cs

Menginisialisasi instans baru kelas Export.

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

Keterangan

Jenis turunan yang memanggil konstruktor ini harus mengambil alih Definition properti dan GetExportedValueCore metode .

Berlaku untuk

Export(ExportDefinition, Func<Object>)

Sumber:
Export.cs
Sumber:
Export.cs
Sumber:
Export.cs

Menginisialisasi instans Export baru kelas dengan definisi ekspor yang ditentukan dan getter objek yang diekspor.

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))

Parameter

definition
ExportDefinition

Objek yang menjelaskan kontrak yang Export dipenuhi objek.

exportedValueGetter
Func<Object>

Metode yang dipanggil untuk membuat objek yang diekspor dari Export. Ini menunda pembuatan objek hingga Value properti dipanggil.

Pengecualian

definitionadalah null.

-atau-

exportedObjectGetteradalah null.

Berlaku untuk

Export(String, Func<Object>)

Sumber:
Export.cs
Sumber:
Export.cs
Sumber:
Export.cs

Menginisialisasi instans Export baru kelas dengan nama kontrak yang ditentukan dan getter nilai yang diekspor.

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))

Parameter

contractName
String

Nama Export kontrak objek.

exportedValueGetter
Func<Object>

Metode yang dipanggil untuk membuat objek yang diekspor dari Export. Ini menunda pembuatan objek sampai metode dipanggil Value .

Pengecualian

contractNameadalah null.

-atau-

exportedObjectGetteradalah null.

contractName adalah string kosong ("").

Berlaku untuk

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

Sumber:
Export.cs
Sumber:
Export.cs
Sumber:
Export.cs

Menginisialisasi instans Export baru kelas dengan nama kontrak, metadata, dan getter nilai yang diekspor yang ditentukan.

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))

Parameter

contractName
String

Nama Export kontrak objek.

metadata
IDictionary<String,Object>

Metadata Export objek atau null untuk mengatur Metadata properti ke objek baca-saja IDictionary<TKey,TValue> yang kosong.

exportedValueGetter
Func<Object>

Metode yang dipanggil untuk membuat objek yang diekspor dari Export. Ini menunda pembuatan objek sampai metode dipanggil Value .

Pengecualian

contractNameadalah null.

-atau-

exportedObjectGetteradalah null.

contractName adalah string kosong ("").

Berlaku untuk