ProjectItemInstance.HasMetadata(String) Method

Definition

Returns true if a particular piece of metadata is defined on this item (even if its value is empty string) otherwise false. This includes built-in metadata and metadata from item definitions.

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

Parameters

name
String

The name of the metadata.

Returns

true if the metadata with the given name is defined on this item (even if its value is empty string); otherwise, false.

Remarks

It has to include all of these because it's used for batching, which doesn't care where the metadata originated.

Applies to