Język

ExportConventionBuilder.AddMetadata Metoda

Definicja

Przeciążenia

Nazwa Opis
AddMetadata(String, Func<Type,Object>)

Dodaje metadane z określoną nazwą i wartością do eksportu.

AddMetadata(String, Object)

Dodaje metadane z określoną nazwą i wartością do eksportu.

AddMetadata(String, Func<Type,Object>)

Źródło:
ExportConventionBuilder.cs
Źródło:
ExportConventionBuilder.cs
Źródło:
ExportConventionBuilder.cs
Źródło:
ExportConventionBuilder.cs

Dodaje metadane z określoną nazwą i wartością do eksportu.

public:
 System::Composition::Convention::ExportConventionBuilder ^ AddMetadata(System::String ^ name, Func<Type ^, System::Object ^> ^ getValueFromPartType);
public System.Composition.Convention.ExportConventionBuilder AddMetadata(string name, Func<Type,object> getValueFromPartType);
member this.AddMetadata : string * Func<Type, obj> -> System.Composition.Convention.ExportConventionBuilder
Public Function AddMetadata (name As String, getValueFromPartType As Func(Of Type, Object)) As ExportConventionBuilder

Parametry

name
String

Nazwa metadanych do dodania.

getValueFromPartType
Func<Type,Object>

Funkcja, która udostępnia wartość metadanych do dodania.

Zwraca

Konstruktor eksportu zawierający metadane, które umożliwiają dalszą konfigurację.

Dotyczy

AddMetadata(String, Object)

Źródło:
ExportConventionBuilder.cs
Źródło:
ExportConventionBuilder.cs
Źródło:
ExportConventionBuilder.cs
Źródło:
ExportConventionBuilder.cs

Dodaje metadane z określoną nazwą i wartością do eksportu.

public:
 System::Composition::Convention::ExportConventionBuilder ^ AddMetadata(System::String ^ name, System::Object ^ value);
public System.Composition.Convention.ExportConventionBuilder AddMetadata(string name, object value);
member this.AddMetadata : string * obj -> System.Composition.Convention.ExportConventionBuilder
Public Function AddMetadata (name As String, value As Object) As ExportConventionBuilder

Parametry

name
String

Nazwa metadanych do dodania.

value
Object

Wartość metadanych do dodania.

Zwraca

Konstruktor eksportu zawierający metadane, które umożliwiają dalszą konfigurację.

Dotyczy