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)"/>.
1373
SetMetadata
(metadataName, EscapingUtilities.Escape(metadataValue));
1714
SetMetadata
(metadataEntry.Key, metadataEntry.Value);
2180
item.
SetMetadata
(metadatum.Name, metadatum.EvaluatedValueEscaped);
Microsoft.Build.Engine.UnitTests (17)
BackEnd\BuildResult_Tests.cs (2)
317
fooTaskItem.
SetMetadata
("meta1", "metavalue1");
318
fooTaskItem.
SetMetadata
("meta2", "metavalue2");
BackEnd\TargetResult_Tests.cs (2)
92
item.
SetMetadata
("a", "b");
116
item.
SetMetadata
("a", "b");
Instance\TaskItem_Tests.cs (13)
55
item.
SetMetadata
("a", "b");
98
left.
SetMetadata
("a", "b");
100
right.
SetMetadata
("a", "b");
113
left.
SetMetadata
("a", "b");
115
right.
SetMetadata
("a", "c");
128
left.
SetMetadata
("a", "b");
130
right.
SetMetadata
("b", "b");
143
left.
SetMetadata
("a", "b");
157
left.
SetMetadata
("a", "b");
159
right.
SetMetadata
("a", "b");
160
right.
SetMetadata
("c", "d");
173
parent.
SetMetadata
("a", "b");
174
parent.
SetMetadata
("c", "d");