ProjectItemInstance.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.
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.