Partager via


GraphProperty Class

Definition

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

public ref class GraphProperty : Microsoft::VisualStudio::GraphModel::GraphMetadataContainer
[System.ComponentModel.TypeConverter(typeof(Microsoft.VisualStudio.GraphModel.GraphPropertyTypeConverter))]
public class GraphProperty : Microsoft.VisualStudio.GraphModel.GraphMetadataContainer
[<System.ComponentModel.TypeConverter(typeof(Microsoft.VisualStudio.GraphModel.GraphPropertyTypeConverter))>]
type GraphProperty = class
    inherit GraphMetadataContainer
Public Class GraphProperty
Inherits GraphMetadataContainer
Inheritance
Attributes

Properties

DataType

Type of data associated with this GraphProperty

DefaultCallback (Inherited from GraphMetadataContainer)
Id

Unique Id of this GraphProperty

Methods

CreateDefaultMetadata() (Inherited from GraphMetadataContainer)
Equals(Object)

Determines if this property is equivalent to another

GetHashCode()

Gets the hash code for this object

GetLabelOrId(Graph)

Return the Label of this GraphCategory or else return the ID if no label was set

GetMetadata(Graph)

Gets the graph specific metadata that describes this object.

(Inherited from GraphMetadataContainer)
ToString()

The string representation of this GraphProperty

Applies to