Implemented interface member:
method
SetMetadata
Microsoft.Build.Framework.ITaskItem.SetMetadata(System.String, System.String)
22 references to SetMetadata
Microsoft.Build (5)
Instance\ProjectItemInstance.cs (5)
1077/// Equivalent to calling <see cref="SetMetadata(string,string)"/> for each item in <paramref name="metadata"/>. 1126/// This is a read-only collection. To modify the metadata, use <see cref="SetMetadata(string, string)"/>. 1373SetMetadata(metadataName, EscapingUtilities.Escape(metadataValue)); 1714SetMetadata(metadataEntry.Key, metadataEntry.Value); 2180item.SetMetadata(metadatum.Name, metadatum.EvaluatedValueEscaped);
Microsoft.Build.Engine.UnitTests (17)
BackEnd\BuildResult_Tests.cs (2)
317fooTaskItem.SetMetadata("meta1", "metavalue1"); 318fooTaskItem.SetMetadata("meta2", "metavalue2");
BackEnd\TargetResult_Tests.cs (2)
92item.SetMetadata("a", "b"); 116item.SetMetadata("a", "b");
Instance\TaskItem_Tests.cs (13)
55item.SetMetadata("a", "b"); 98left.SetMetadata("a", "b"); 100right.SetMetadata("a", "b"); 113left.SetMetadata("a", "b"); 115right.SetMetadata("a", "c"); 128left.SetMetadata("a", "b"); 130right.SetMetadata("b", "b"); 143left.SetMetadata("a", "b"); 157left.SetMetadata("a", "b"); 159right.SetMetadata("a", "b"); 160right.SetMetadata("c", "d"); 173parent.SetMetadata("a", "b"); 174parent.SetMetadata("c", "d");