Partilhar via


ProjectItemInstance.GetMetadata(String) Method

Definition

Get any metadata in the item that has the specified name, otherwise returns null. Includes any metadata inherited from item definitions. Includes any built-in metadata.

public:
 virtual Microsoft::Build::Execution::ProjectMetadataInstance ^ GetMetadata(System::String ^ name);
public Microsoft.Build.Execution.ProjectMetadataInstance GetMetadata (string name);
abstract member GetMetadata : string -> Microsoft.Build.Execution.ProjectMetadataInstance
override this.GetMetadata : string -> Microsoft.Build.Execution.ProjectMetadataInstance
Public Function GetMetadata (name As String) As ProjectMetadataInstance

Parameters

name
String

The name of the metadata.

Returns

The metadata with the given name, or null if no metadata exists with that name.

Remarks

Does not include any built-in metadata.

Applies to