Sets an attribute on the project element.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Sub SetMetadata ( _
attributeName As String, _
attributeValue As String _
)
'使用
Dim instance As ProjectElement
Dim attributeName As String
Dim attributeValue As String
instance.SetMetadata(attributeName, attributeValue)
public void SetMetadata(
string attributeName,
string attributeValue
)
public:
void SetMetadata(
String^ attributeName,
String^ attributeValue
)
public function SetMetadata(
attributeName : String,
attributeValue : String
)
Parameters
attributeName
Type: System.StringThe name of the attribute.
attributeValue
Type: System.StringThe value of the attribute.
Remarks
If the attribute is BuildAction, it sets the build item's name to the value. Otherwise calls [M:Microsoft. Build.BuildEngine.BuildItem.SetMetadata(string metadataName, string metadataValue)].
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.