ProjectItemInstance.GetMetadataValue(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.
Get the value of a metadata on this item, or String.Empty if it does not exist or has no value. Includes any metadata inherited from item definitions and any built-in metadata. To determine whether a piece of metadata is actually present but with an empty value, use HasMetadata.
public:
virtual System::String ^ GetMetadataValue(System::String ^ name);
public string GetMetadataValue (string name);
abstract member GetMetadataValue : string -> string
override this.GetMetadataValue : string -> string
Public Function GetMetadataValue (name As String) As String
Parameters
- name
- String
The name of the metadata.
Returns
The value of the metadata with the given name, including metadata inherited from item definitions, or an empty string if no metadata exists with that name.
Remarks
Includes built-in metadata.
To determine whether a piece of metadata is actually present but with an empty value, use HasMetadata.