PartConventionBuilder.AddPartMetadata 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
AddPartMetadata(String, Func<Type,Object>) |
Adds metadata that has the specified name and value to the part. The value is returned by a function that maps the part type to the metadata value. |
AddPartMetadata(String, Object) |
Adds metadata that has the specified name and value to the part. |
AddPartMetadata(String, Func<Type,Object>)
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
Adds metadata that has the specified name and value to the part. The value is returned by a function that maps the part type to the metadata value.
public:
System::Composition::Convention::PartConventionBuilder ^ AddPartMetadata(System::String ^ name, Func<Type ^, System::Object ^> ^ getValueFromPartType);
public System.Composition.Convention.PartConventionBuilder AddPartMetadata (string name, Func<Type,object> getValueFromPartType);
member this.AddPartMetadata : string * Func<Type, obj> -> System.Composition.Convention.PartConventionBuilder
Public Function AddPartMetadata (name As String, getValueFromPartType As Func(Of Type, Object)) As PartConventionBuilder
Parameters
- name
- String
The name of the metadata to add.
Returns
A part builder that can be used to further configure the part.
Applies to
AddPartMetadata(String, Object)
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
Adds metadata that has the specified name and value to the part.
public:
System::Composition::Convention::PartConventionBuilder ^ AddPartMetadata(System::String ^ name, System::Object ^ value);
public System.Composition.Convention.PartConventionBuilder AddPartMetadata (string name, object value);
member this.AddPartMetadata : string * obj -> System.Composition.Convention.PartConventionBuilder
Public Function AddPartMetadata (name As String, value As Object) As PartConventionBuilder
Parameters
- name
- String
The metadata name.
- value
- Object
The metadata value.
Returns
A part builder that can be used to further configure the part.
Applies to
.NET