ODataController Class
Defines a base class for OData controllers that support writing and reading data using the OData formats.
Inheritance Hierarchy
System.Object
System.Web.Http.ApiController
System.Web.Http.OData.ODataController
System.Web.Http.OData.AsyncEntitySetController<TEntity, TKey>
System.Web.Http.OData.EntitySetController<TEntity, TKey>
System.Web.Http.OData.ODataMetadataController
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
<ODataRoutingAttribute> _
<ODataFormattingAttribute> _
<ApiExplorerSettingsAttribute(IgnoreApi := True)> _
Public MustInherit Class ODataController _
Inherits ApiController
'Usage
Dim instance As ODataController
[ODataRoutingAttribute]
[ODataFormattingAttribute]
[ApiExplorerSettingsAttribute(IgnoreApi = true)]
public abstract class ODataController : ApiController
[ODataRoutingAttribute]
[ODataFormattingAttribute]
[ApiExplorerSettingsAttribute(IgnoreApi = true)]
public ref class ODataController abstract : public ApiController
[<AbstractClassAttribute>]
[<ODataRoutingAttribute>]
[<ODataFormattingAttribute>]
[<ApiExplorerSettingsAttribute(IgnoreApi = true)>]
type ODataController =
class
inherit ApiController
end
public abstract class ODataController extends ApiController
The ODataController type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ODataController | Initializes a new instance of the ODataController class. |
Top
Properties
Name | Description | |
---|---|---|
Configuration | (Inherited from ApiController.) | |
ControllerContext | (Inherited from ApiController.) | |
ModelState | (Inherited from ApiController.) | |
Request | (Inherited from ApiController.) | |
RequestContext | (Inherited from ApiController.) | |
Url | (Inherited from ApiController.) | |
User | (Inherited from ApiController.) |
Top
Methods
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.