BuildItem.HasMetadata(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.
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