Class VertexProperty
A VertexProperty denotes a key/value pair associated with a Vertex.
public class VertexProperty : Element, IEquatable<Element>
- Inheritance
-
VertexProperty
- Implements
- Inherited Members
Constructors
VertexProperty(object?, string, dynamic?, Vertex?, dynamic[]?)
Initializes a new instance of the VertexProperty class.
public VertexProperty(object? id, string label, dynamic? value, Vertex? vertex = null, dynamic[]? properties = null)
Parameters
id
objectThe id of the vertex property.
label
stringThe label of the vertex property.
value
dynamicThe id of the vertex property.
vertex
VertexThe (optional) Vertex that owns this VertexProperty.
properties
dynamic[]Optional properties of the VertexProperty.
Properties
Key
The key of this VertexProperty.
public string Key { get; }
Property Value
Value
The value of this VertexProperty.
public dynamic? Value { get; }
Property Value
- dynamic
Vertex
The Vertex that owns this VertexProperty.
public Vertex? Vertex { get; }
Property Value
Methods
Property(string)
Get property by key
public Property? Property(string key)
Parameters
key
string
Returns
- Property
property or null when not found
ToString()
public override string ToString()