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.
Inheritance Hierarchy
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)
Syntax
'Declaration
Public Class CodeGraphNodeIdBuilder
public class CodeGraphNodeIdBuilder
public ref class CodeGraphNodeIdBuilder
type CodeGraphNodeIdBuilder = class end
public class CodeGraphNodeIdBuilder
The CodeGraphNodeIdBuilder type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CodeGraphNodeIdBuilder(CodeGraphNodeIdBuilder) | ||
CodeGraphNodeIdBuilder(Graph) | ||
CodeGraphNodeIdBuilder(GraphNodeId, Graph) |
Top
Properties
Name | Description | |
---|---|---|
Assembly | ||
GraphForMetadata | ||
HasAssembly | ||
HasMember | ||
HasNamespace | ||
HasParameter | ||
HasType | ||
Member | ||
MostSpecificLabel | ||
Namespace | ||
Parameter | ||
ParameterTransientLabelName | ||
Type |
Top
Methods
Name | Description | |
---|---|---|
Clear | Clear a GraphNodeId for re-use | |
ConvertAllUris | ||
Equals(Object) | (Overrides Object.Equals(Object).) | |
Equals(CodeGraphNodeIdBuilder, StringComparison) | ||
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetFullyQualifiedLabel() | ||
GetFullyQualifiedLabel(CodeGraphNodeIdLabelFormats) | ||
GetHashCode | (Overrides Object.GetHashCode().) | |
GetLabel | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Reinitialize(CodeGraphNodeIdBuilder) | ||
Reinitialize(GraphNodeId) | ||
ToGraphNodeId | ||
ToString | (Overrides Object.ToString().) |
Top
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
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema Namespace