Bagikan melalui


ProjectItemInstance.SetMetadata Method

Include Protected Members
Include Inherited Members

Adds metadata with the given names and values. Overwrites any metadata with the same name already in the collection.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method SetMetadata(IEnumerable<KeyValuePair<String, String>>) Adds metadata with the given names and values. Overwrites any metadata with the same name already in the collection.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method SetMetadata(String, String) Add metadata with the given name and value. Overwrites any metadata with the same name already in the collection.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Top

See Also

Reference

ProjectItemInstance Class

Microsoft.Build.Execution Namespace