Delen via


GraphCategory Class

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

Graph Categories are used to specify category information on a GraphObject, like nodes and links.

Inheritance Hierarchy

System.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
Public property BasedOnCategory Get/Set the base category or null
Protected property DefaultCallback (Inherited from GraphMetadataContainer.)
Public property Id Unique id of this GraphCategory

Top

Methods

  Name Description
Public method CreateDefaultMetadata (Inherited from GraphMetadataContainer.)
Public method Equals Determines of a passed in category is equivalent to this one (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode The hash code of the category (Overrides Object.GetHashCode().)
Public method GetLabelOrId Return the Label of this GraphCategory or else return the ID if no label was set
Public method GetMetadata Gets the graph specific metadata that describes this object. (Inherited from GraphMetadataContainer.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsBasedOn Determines if this category is based upon the specified category. Walks the entire "BasedOn" chain looking for the specified category.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace