Share via


SingleResult<T> Class

 

Represents an IQueryable<T> 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 sealed class SingleResult<T> : SingleResult
generic<typename T>
[TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public ref class SingleResult sealed : SingleResult
[<Sealed>]
[<TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
type SingleResult<'T> = 
    class
        inherit SingleResult
    end
<TypeForwardedFromAttribute("System.Web.Http.OData, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>
Public NotInheritable Class SingleResult(Of T)
    Inherits SingleResult

Type Parameters

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

Constructors

Name Description
System_CAPS_pubmethod SingleResult<T>(IQueryable<T>)

Initializes a new instance of the SingleResult<T> class.

Properties

Name Description
System_CAPS_pubproperty Queryable

The IQueryable<T> containing zero or one entities.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod 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

System.Web.Http Namespace

Return to top