GraphProperty Class

Graph Properties are used to annotate a GraphObject, like nodes and links.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.GraphModel.GraphMetadataContainer
    Microsoft.VisualStudio.GraphModel.GraphProperty

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Class GraphProperty _
    Inherits GraphMetadataContainer
public class GraphProperty : GraphMetadataContainer
public ref class GraphProperty : public GraphMetadataContainer
type GraphProperty =  
    class 
        inherit GraphMetadataContainer 
    end
public class GraphProperty extends GraphMetadataContainer

The GraphProperty type exposes the following members.

Properties

  Name Description
Public property DataType Type of data associated with this GraphProperty
Protected property DefaultCallback (Inherited from GraphMetadataContainer.)
Public property Id Unique id of this GraphProperty

Top

Methods

  Name Description
Public method CreateDefaultMetadata (Inherited from GraphMetadataContainer.)
Public method Equals Determines if this property is equivalent to another (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 Gets the hash code for this object (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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString The string representation of this GraphProperty (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