Share via


ProjectItem.HasMetadata(String) Method

Definition

Returns true if a particular piece of metadata is defined on this item, otherwise false. Includes built-in metadata and metadata inherited 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 to be searched for.

Returns

true if metadata with the given name is defined on this item; otherwise, false.

Remarks

Includes built-in metadata and metadata originating from item definitions.

Applies to