ProjectItemDefinitionInstance.GetMetadata(String) Method

Definition

Get any metadata in the item that has the specified name, otherwise returns null

C#
public Microsoft.Build.Execution.ProjectMetadataInstance GetMetadata(string name);

Parameters

name
String

The name of the metadata to retrieve.

Returns

Any metadata in this item definition with the given name, or null if no metadata exists with this name.

Applies to

منتج الإصدارات
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17