17 references to HasMetadata
dotnet-openapi (1)
Commands\RemoveCommand.cs (1)
59
var sourceUrl = item.
HasMetadata
(SourceUrlAttrName) ? item.GetMetadataValue(SourceUrlAttrName) : null;
Microsoft.Build (3)
Definition\ProjectItem.cs (2)
435
/// To determine whether a piece of metadata does not exist vs. simply has no value, use <see cref="
HasMetadata
(string)">HasMetadata</see>.
768
if (value.Length > 0 ||
HasMetadata
(name))
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
44
/// Facilitate remoting the <see cref="ProjectItem.
HasMetadata
"/>.
Microsoft.Build.Engine.OM.UnitTests (13)
Definition\ProtectImports_Tests.cs (1)
411
Assert.False(item.
HasMetadata
(ProjectMetadataName)); // "Metadata was not removed from project."
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (5)
42
Assert.True(result.
HasMetadata
(m.Key));
240
Assert.Equal(real.
HasMetadata
(rm.Name), view.
HasMetadata
(rm.Name));
243
Assert.Equal(real.
HasMetadata
("random non existent"), view.
HasMetadata
("random non existent"));
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (6)
236
Assert.False(fooView.
HasMetadata
("xx"));
238
Assert.True(fooView.
HasMetadata
("xx"));
245
Assert.False(fooView.
HasMetadata
("xx"));
250
Assert.False(fooView.
HasMetadata
("xxReal"));
252
Assert.True(fooView.
HasMetadata
("xxReal"));
257
Assert.False(fooView.
HasMetadata
("xxReal"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
27
public bool HasMetadata(string name) => this.Source.
HasMetadata
(name);