ProjectElement.SetMetadata Method

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

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

See Also

Reference

ProjectElement Class

ProjectElement Members

Microsoft.VisualStudio.Package Namespace