ExportBuilder.AddMetadata Method

Definition

Specifies metadata to be added to the export.

Overloads

AddMetadata(String, Func<Type,Object>)

Specifies a metadata key/value pair to be added to the export.

AddMetadata(String, Object)

Specifies a metadata key/value pair to be added to the export.

AddMetadata(String, Func<Type,Object>)

Source:
ExportBuilder.cs
Source:
ExportBuilder.cs
Source:
ExportBuilder.cs
Source:
ExportBuilder.cs

Specifies a metadata key/value pair to be added to the export.

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

Parameters

name
String

The metadata key.

itemFunc
Func<Type,Object>

A function that takes a type and returns the metadata value.

Returns

The current object, to allow chaining.

Applies to

AddMetadata(String, Object)

Source:
ExportBuilder.cs
Source:
ExportBuilder.cs
Source:
ExportBuilder.cs
Source:
ExportBuilder.cs

Specifies a metadata key/value pair to be added to the export.

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

Parameters

name
String

The metadata key.

value
Object

The metadata value.

Returns

The current object, to allow chaining.

Applies to