Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Query Inheritance: System.ObjectSyntax
Summary
Represents a query result.Constructors
.ctor
Initializes a new instance of the QueryResult class with an Exception.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
exception | System.Exception | An Exception. |
.ctor
Initializes a new instance of the QueryResult class with in-memory results.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
results | System.Collections.IEnumerable | In-memory results. |
.ctor Inherited
Inherited from
objectSyntax
Properties
Exception
Gets or sets an Exception to be returned.Syntax
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
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
Property Value
Type:Microsoft.OData.Edm.IEdmEntitySet
Remarks
This property will benull if the results are not instances
of a particular entity type that has an associated entity set.
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?