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.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.