Partager via


BuildItem.HasMetadata(String) Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Indicates if the given metadata is set on the item.

public:
 bool HasMetadata(System::String ^ metadataName);
public bool HasMetadata (string metadataName);
member this.HasMetadata : string -> bool
Public Function HasMetadata (metadataName As String) As Boolean

Parameters

metadataName
String

The item metadata name.

Returns

true if the item has the specified item metadata; otherwise, false.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to