CodeGraphNodeIdBuilder Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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.

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

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

public class CodeGraphNodeIdBuilder

The CodeGraphNodeIdBuilder type exposes the following members.

  NameDescription
Public methodClearClear a GraphNodeId for re-use
Public methodConvertAllUris
Public methodEquals(Object) (Overrides Object.Equals(Object).)
Public methodEquals(CodeGraphNodeIdBuilder, StringComparison)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetFullyQualifiedLabel()
Public methodGetFullyQualifiedLabel(CodeGraphNodeIdLabelFormats)
Public methodGetHashCode (Overrides Object.GetHashCode().)
Public methodGetLabel
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodReinitialize(CodeGraphNodeIdBuilder)
Public methodReinitialize(GraphNodeId)
Public methodToGraphNodeId
Public methodToString (Overrides Object.ToString().)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft