In this article
Represents an ApiController for generating OData servicedoc and metadata document ($metadata).
Inheritance Hierarchy
System.Object
System.Web.Http.ApiController
System.Web.Http.OData.ODataController
System.Web.Http.OData.ODataMetadataController
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Class ODataMetadataController _
Inherits ODataController
'Usage
Dim instance As ODataMetadataController
public class ODataMetadataController : ODataController
public ref class ODataMetadataController : public ODataController
type ODataMetadataController =
class
inherit ODataController
end
public class ODataMetadataController extends ODataController
The ODataMetadataController type exposes the following members.
Constructors
Top
Properties
Top
Methods
BadRequest()
(Inherited from ApiController .)
BadRequest(String)
(Inherited from ApiController .)
BadRequest(ModelStateDictionary)
(Inherited from ApiController .)
Conflict
(Inherited from ApiController .)
Content<T>(HttpStatusCode, T)
(Inherited from ApiController .)
Content<T>(HttpStatusCode, T, MediaTypeFormatter)
(Inherited from ApiController .)
Content<T>(HttpStatusCode, T, MediaTypeFormatter, String)
(Inherited from ApiController .)
Content<T>(HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue)
(Inherited from ApiController .)
Created<TEntity>(TEntity)
Creates an action result with the specified values that is a response to a POST operation with an entity to an entity set. (Inherited from ODataController .)
Created<T>(String, T)
(Inherited from ApiController .)
Created<T>(Uri, T)
(Inherited from ApiController .)
CreatedAtRoute<T>(String, Object, T)
(Inherited from ApiController .)
CreatedAtRoute<T>(String, IDictionary<String, Object>, T)
(Inherited from ApiController .)
Dispose()
(Inherited from ApiController .)
Dispose(Boolean)
(Inherited from ApiController .)
Equals
(Inherited from Object .)
ExecuteAsync
(Inherited from ApiController .)
Finalize
(Inherited from Object .)
GetHashCode
(Inherited from Object .)
GetMetadata
Generates the OData $metadata document.
GetServiceDocument
Generates the OData service document.
GetType
(Inherited from Object .)
Initialize
(Inherited from ApiController .)
InternalServerError()
(Inherited from ApiController .)
InternalServerError(Exception)
(Inherited from ApiController .)
Json<T>(T)
(Inherited from ApiController .)
Json<T>(T, JsonSerializerSettings)
(Inherited from ApiController .)
Json<T>(T, JsonSerializerSettings, Encoding)
(Inherited from ApiController .)
MemberwiseClone
(Inherited from Object .)
NotFound
(Inherited from ApiController .)
Ok()
(Inherited from ApiController .)
Ok<T>(T)
(Inherited from ApiController .)
Redirect(String)
(Inherited from ApiController .)
Redirect(Uri)
(Inherited from ApiController .)
RedirectToRoute(String, Object)
(Inherited from ApiController .)
RedirectToRoute(String, IDictionary<String, Object>)
(Inherited from ApiController .)
ResponseMessage
(Inherited from ApiController .)
StatusCode
(Inherited from ApiController .)
ToString
(Inherited from Object .)
Unauthorized(array<AuthenticationHeaderValue[])
(Inherited from ApiController .)
Unauthorized(IEnumerable<AuthenticationHeaderValue>)
(Inherited from ApiController .)
Updated<TEntity>
Creates an action result with the specified values that is a response to a PUT, PATCH, or a MERGE operation on an OData entity. (Inherited from ODataController .)
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.OData Namespace