GraphCategory Class
Graph Categories are used to specify category information on a GraphObject, like nodes and links.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.GraphModel.GraphMetadataContainer
Microsoft.VisualStudio.GraphModel.GraphCategory
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Class GraphCategory _
Inherits GraphMetadataContainer
public class GraphCategory : GraphMetadataContainer
public ref class GraphCategory : public GraphMetadataContainer
type GraphCategory =
class
inherit GraphMetadataContainer
end
public class GraphCategory extends GraphMetadataContainer
The GraphCategory type exposes the following members.
Properties
Name | Description | |
---|---|---|
BasedOnCategory | Get/Set the base category or null | |
DefaultCallback | (Inherited from GraphMetadataContainer.) | |
Id | Unique id of this GraphCategory |
Top
Methods
Name | Description | |
---|---|---|
CreateDefaultMetadata | (Inherited from GraphMetadataContainer.) | |
Equals | Determines of a passed in category is equivalent to this one (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | The hash code of the category (Overrides Object.GetHashCode.) | |
GetLabelOrId | Return the Label of this GraphCategory or else return the ID if no label was set | |
GetMetadata | Gets the graph specific metadata that describes this object. (Inherited from GraphMetadataContainer.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsBasedOn | Determines if this category is based upon the specified category. Walks the entire "BasedOn" chain looking for the specified category. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | The Id of the category (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.