ExportConventionBuilder.AddMetadata Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per