Table of Contents

Class VertexProperty

Namespace
Gremlin.Net.Structure
Assembly
Gremlin.Net.dll

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 object

The id of the vertex property.

label string

The label of the vertex property.

value dynamic

The id of the vertex property.

vertex Vertex

The (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

string

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

Vertex

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()

Returns

string