Freigeben über


SelectExpandQueryOption Class

 

Represents the OData $select and $expand query options.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Query.SelectExpandQueryOption

Syntax

public class SelectExpandQueryOption
public ref class SelectExpandQueryOption 
type SelectExpandQueryOption = class end
Public Class SelectExpandQueryOption

Constructors

Name Description
System_CAPS_pubmethod SelectExpandQueryOption(String, String, ODataQueryContext)

Initializes a new instance of the SelectExpandQueryOption class.

Properties

Name Description
System_CAPS_pubproperty Context

Gets the given ODataQueryContext.

System_CAPS_pubproperty RawExpand

Gets the raw $expand value.

System_CAPS_pubproperty RawSelect

Gets the raw $select value.

System_CAPS_pubproperty SelectExpandClause

Gets the parsed SelectExpandClause for this query option.

System_CAPS_pubproperty Validator

Gets or sets the $select and $expand query validator.

Methods

Name Description
System_CAPS_pubmethod ApplyTo(IQueryable, ODataQuerySettings)

Applies the $select and $expand query options to the given IQueryable using the given ODataQuerySettings.

System_CAPS_pubmethod ApplyTo(Object, ODataQuerySettings)

Applies the $select and $expand query options to the given entity using the given ODataQuerySettings.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate(ODataValidationSettings)

Validate the $select and $expand query based on the given validationSettings. It throws an ODataException if validation failed.

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.OData.Query Namespace

Return to top