Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Query Inheritance: System.Object

Syntax

Microsoft.Restier.Core.Query.QueryResult

Summary

Represents a query result.

Constructors

.ctor

Initializes a new instance of the QueryResult class with an Exception.

Syntax

public QueryResult(System.Exception exception)

Parameters

NameTypeDescription
exceptionSystem.ExceptionAn Exception.

.ctor

Initializes a new instance of the QueryResult class with in-memory results.

Syntax

public QueryResult(System.Collections.IEnumerable results)

Parameters

NameTypeDescription
resultsSystem.Collections.IEnumerableIn-memory results.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Exception

Gets or sets an Exception to be returned.

Syntax

public System.Exception Exception { get; set; }

Property Value

Type: System.Exception

Remarks

Setting this value will override any existing Exception or results.

Results

Gets or sets the in-memory results.

Syntax

public System.Collections.IEnumerable Results { get; set; }

Property Value

Type: System.Collections.IEnumerable

Remarks

Setting this value will override any existing Exception or results.

ResultsSource

Gets or sets the entity set from which the results were sourced.

Syntax

public Microsoft.OData.Edm.IEdmEntitySet ResultsSource { get; set; }

Property Value

Type: Microsoft.OData.Edm.IEdmEntitySet

Remarks

This property will be null if the results are not instances of a particular entity type that has an associated entity set.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?