17 references to HasMetadata
dotnet-openapi (1)
Commands\RemoveCommand.cs (1)
59var 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>. 768if (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)
411Assert.False(item.HasMetadata(ProjectMetadataName)); // "Metadata was not removed from project."
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (5)
42Assert.True(result.HasMetadata(m.Key)); 240Assert.Equal(real.HasMetadata(rm.Name), view.HasMetadata(rm.Name)); 243Assert.Equal(real.HasMetadata("random non existent"), view.HasMetadata("random non existent"));
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (6)
236Assert.False(fooView.HasMetadata("xx")); 238Assert.True(fooView.HasMetadata("xx")); 245Assert.False(fooView.HasMetadata("xx")); 250Assert.False(fooView.HasMetadata("xxReal")); 252Assert.True(fooView.HasMetadata("xxReal")); 257Assert.False(fooView.HasMetadata("xxReal"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
27public bool HasMetadata(string name) => this.Source.HasMetadata(name);