Modifica

Condividi tramite


ExportConventionBuilder.AddMetadata Method

Definition

Overloads

AddMetadata(String, Func<Type,Object>)

Adds metadata that has the specified name and value to the export.

AddMetadata(String, Object)

Adds metadata that has the specified name and value to the export.

AddMetadata(String, Func<Type,Object>)

Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs

Adds metadata that has the specified name and value to the export.

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

Parameters

name
String

The name of the metadata to add.

getValueFromPartType
Func<Type,Object>

A function that provides the value of the metadata to add.

Returns

An export builder containing the metadata that allows for further configuration.

Applies to

AddMetadata(String, Object)

Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs

Adds metadata that has the specified name and value to the export.

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

Parameters

name
String

The name of the metadata to add.

value
Object

The value of the metadata to add.

Returns

An export builder containing the metadata that allows for further configuration.

Applies to