ProjectElement.GetMetadata Method

Gets the value of an attribute on a project element.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Function GetMetadata ( _
    attributeName As String _
) As String
'使用
Dim instance As ProjectElement
Dim attributeName As String
Dim returnValue As String

returnValue = instance.GetMetadata(attributeName)
public string GetMetadata(
    string attributeName
)
public:
String^ GetMetadata(
    String^ attributeName
)
public function GetMetadata(
    attributeName : String
) : String

Parameters

  • attributeName
    Type: System.String

    The name of the attribute to get.

Return Value

Type: System.String

If the attribute to get is Include, returns the element's [FinalItemSpec]; if the attribute is BuildAction, returns the build item's name. Otherwise calls GetMetadata(attributeName).

Permissions

See Also

Reference

ProjectElement Class

ProjectElement Members

Microsoft.VisualStudio.Package Namespace