ProjectItem.GetMetadata(String) 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.
Gets an evaluated metadata on this item. Potentially includes a metadata from an item definition. Does not return built-in metadata, such as "FullPath". Returns null if not found.
public:
Microsoft::Build::Evaluation::ProjectMetadata ^ GetMetadata(System::String ^ name);
public Microsoft.Build.Evaluation.ProjectMetadata GetMetadata (string name);
member this.GetMetadata : string -> Microsoft.Build.Evaluation.ProjectMetadata
Public Function GetMetadata (name As String) As ProjectMetadata
Parameters
- name
- String
The name of the metadata whose value is retrieved.
Returns
The evaluated value of the given metadata for this item, or null
if no metadata exists with the given name.
Remarks
May include metadata from an item definition. Does not include built-in metadata, such as "FullPath".