Class ResultSet<T>
A ResultSet is returned from the submission of a Gremlin script to the server and represents the results provided by the server. ResultSet includes enumerable data and status attributes.
Inheritance
System.Object
ResultSet<T>
Implements
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Gremlin.Net.Driver
Assembly: cs.temp.dll.dll
Syntax
public sealed class ResultSet<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | Type of the result elements |
Constructors
ResultSet(IReadOnlyCollection<T>, IReadOnlyDictionary<String, Object>)
Initializes a new instance of the ResultSet class for the specified data and status attributes.
Declaration
public ResultSet(IReadOnlyCollection<T> data, IReadOnlyDictionary<string, object> attributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyCollection<T> | data | |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> | attributes |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StatusAttributes
Gets or sets the status attributes from the gremlin response
Declaration
public IReadOnlyDictionary<string, object> StatusAttributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> |
Methods
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> |
Implements
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable