次の方法で共有


ExportBuilder.AddMetadata メソッド

定義

エクスポートに追加されるメタデータを指定します。

オーバーロード

AddMetadata(String, Func<Type,Object>)

エクスポートに追加されるメタデータ キーと値のペアを指定します。

AddMetadata(String, Object)

エクスポートに追加されるメタデータ キーと値のペアを指定します。

AddMetadata(String, Func<Type,Object>)

ソース:
ExportBuilder.cs
ソース:
ExportBuilder.cs
ソース:
ExportBuilder.cs

エクスポートに追加されるメタデータ キーと値のペアを指定します。

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

パラメーター

name
String

メタデータ キー。

itemFunc
Func<Type,Object>

型を受け取り、メタデータ値を返す関数。

戻り値

チェーンを許可するための現在のオブジェクト。

適用対象

AddMetadata(String, Object)

ソース:
ExportBuilder.cs
ソース:
ExportBuilder.cs
ソース:
ExportBuilder.cs

エクスポートに追加されるメタデータ キーと値のペアを指定します。

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

パラメーター

name
String

メタデータ キー。

value
Object

メタデータ値。

戻り値

チェーンを許可するための現在のオブジェクト。

適用対象