SingleResult<T> Class

Represents an IQueryable containing zero or one entities.

Inheritance Hierarchy

System.Object
  System.Web.Http.SingleResult
    System.Web.Http.SingleResult<T>

Namespace:  System.Web.Http
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public NotInheritable Class SingleResult(Of T) _
    Inherits SingleResult
'Usage
Dim instance As SingleResult(Of T)
public sealed class SingleResult<T> : SingleResult
generic<typename T>
public ref class SingleResult sealed : public SingleResult
[<SealedAttribute>]
type SingleResult<'T> =  
    class 
        inherit SingleResult 
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the data in the data source.

The SingleResult<T> type exposes the following members.

Constructors

  Name Description
Public method SingleResult<T> Initializes a new instance of the SingleResult class.

Top

Properties

  Name Description
Public property Queryable The <see cref="T:System.Linq.IQueryable`1" /> containing zero or one entities.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Http Namespace