SingleResult Class
Represents an IQueryable containing zero or one entities. Use together with an [EnableQuery] from the System.Web.Http.OData or System.Web.OData namespace.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.SingleResult
System.Web.Http.SingleResult<T>
Syntax
[TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public abstract class SingleResult
[TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public ref class SingleResult abstract
[<AbstractClass>]
[<TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
type SingleResult = class end
<TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>
Public MustInherit Class SingleResult
Constructors
Name | Description | |
---|---|---|
SingleResult(IQueryable) | Initializes a new instance of the SingleResult class. |
Properties
Name | Description | |
---|---|---|
Queryable | The IQueryable containing zero or one entities. |
Methods
Name | Description | |
---|---|---|
Create<T>(IQueryable<T>) | Creates a SingleResult<T> from an IQueryable<T>. A helper method to instantiate a SingleResult<T> object without having to explicitly specify the type T. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Return to top