Share via


CodeGraphNodeIdBuilder Class

 

The CodeGraphNodeIdBuilder allows us to inspect a GraphNodeId and retrieve the code elements (Namespace, Type etc.) out of it. This is not an expensive object to create, but to miminize GC pressure when building a lot of GraphNodeIds, you can reuse the same CodeGraphNodeIdBuilder by calling ReInitialize, rather than creating a new CodeGraphNodeIdBuilder. CodeGraphNodeIdBuilder is created lazily so that we don't need to e.g. build a child CodeGraphNodeIdBuilder to parse a generic argument when we're not going to look at the value of the generic argument.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema.CodeGraphNodeIdBuilder

Syntax

public class CodeGraphNodeIdBuilder
public ref class CodeGraphNodeIdBuilder 
type CodeGraphNodeIdBuilder = class end
Public Class CodeGraphNodeIdBuilder

Constructors

Name Description
System_CAPS_pubmethod CodeGraphNodeIdBuilder(CodeGraphNodeIdBuilder)

System_CAPS_pubmethod CodeGraphNodeIdBuilder(Graph)

System_CAPS_pubmethod CodeGraphNodeIdBuilder(GraphNodeId, Graph)

Properties

Name Description
System_CAPS_pubproperty Assembly

System_CAPS_pubproperty GraphForMetadata

System_CAPS_pubproperty HasAssembly

System_CAPS_pubproperty HasMember

System_CAPS_pubproperty HasNamespace

System_CAPS_pubproperty HasParameter

System_CAPS_pubproperty HasType

System_CAPS_pubproperty Member

System_CAPS_pubproperty MostSpecificLabel

System_CAPS_pubproperty Namespace

System_CAPS_pubproperty Parameter

System_CAPS_pubproperty ParameterTransientLabelName

System_CAPS_pubproperty Type

Methods

Name Description
System_CAPS_pubmethod Clear()

Clear a GraphNodeId for re-use

System_CAPS_pubmethod ConvertAllUris(CodeGraphNodeIdUriConvert)

System_CAPS_pubmethod Equals(CodeGraphNodeIdBuilder, StringComparison)

System_CAPS_pubmethod Equals(Object)

(Overrides Object.Equals(Object).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetFullyQualifiedLabel()

System_CAPS_pubmethod GetFullyQualifiedLabel(CodeGraphNodeIdLabelFormats)

System_CAPS_pubmethod GetHashCode()

(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetLabel(CodeGraphNodeIdLabelFormats)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Reinitialize(CodeGraphNodeIdBuilder)

System_CAPS_pubmethod Reinitialize(GraphNodeId)

System_CAPS_pubmethod ToGraphNodeId()

System_CAPS_pubmethod ToString()

(Overrides Object.ToString().)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema Namespace

Return to top