Class Element
Base class for vertices and edges
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.DataStax.Graph
Assembly: Cassandra.dll
Syntax
public abstract class Element : IElement, IEquatable<IElement>
Constructors
Element(GraphNode, string, IDictionary<string, GraphNode>)
Creates a new instance of a Graph Element.
Declaration
protected Element(GraphNode id, string label, IDictionary<string, GraphNode> properties)
Parameters
Type | Name | Description |
---|---|---|
GraphNode | id | |
string | label | |
IDictionary<string, GraphNode> | properties |
Properties
Id
Gets the identifier
Declaration
public GraphNode Id { get; }
Property Value
Type | Description |
---|---|
GraphNode |
Label
Gets the label of the element
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
string |
Properties
Gets the properties
Declaration
public IDictionary<string, GraphNode> Properties { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, GraphNode> |
Methods
Equals(IElement)
Declaration
public bool Equals(IElement other)
Parameters
Type | Name | Description |
---|---|---|
IElement | other |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
object.Equals(object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
object.GetHashCode()
GetProperties()
Gets all properties of an element.
Declaration
public IEnumerable<IProperty> GetProperties()
Returns
Type | Description |
---|---|
IEnumerable<IProperty> |
GetProperty(string)
Gets a property by name.
Declaration
public IProperty GetProperty(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Returns
Type | Description |
---|---|
IProperty |
Implements
System.IEquatable<T>