共用方式為


ExportConventionBuilder.AddMetadata 方法

定義

多載

AddMetadata(String, Func<Type,Object>)

將具有指定之名稱及值的中繼資料加入至匯入。

AddMetadata(String, Object)

將具有指定之名稱及值的中繼資料加入至匯入。

AddMetadata(String, Func<Type,Object>)

來源:
ExportConventionBuilder.cs
來源:
ExportConventionBuilder.cs
來源:
ExportConventionBuilder.cs

將具有指定之名稱及值的中繼資料加入至匯入。

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

參數

name
String

要加入之中繼資料的名稱。

getValueFromPartType
Func<Type,Object>

提供要加入之中繼資料值的函式。

傳回

內含中繼資料,允許進一步設定的匯出產生器。

適用於

AddMetadata(String, Object)

來源:
ExportConventionBuilder.cs
來源:
ExportConventionBuilder.cs
來源:
ExportConventionBuilder.cs

將具有指定之名稱及值的中繼資料加入至匯入。

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

參數

name
String

要加入之中繼資料的名稱。

value
Object

要加入的中繼資料值。

傳回

內含中繼資料,允許進一步設定的匯出產生器。

適用於