Share via


DataServiceOperationContext Class

Represents the current operation being processed.

Inheritance Hierarchy

System.Object
  System.Data.Services.DataServiceOperationContext

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public NotInheritable Class DataServiceOperationContext _
    Implements IServiceProvider
'Usage
Dim instance As DataServiceOperationContext
public sealed class DataServiceOperationContext : IServiceProvider
public ref class DataServiceOperationContext sealed : IServiceProvider
[<SealedAttribute>]
type DataServiceOperationContext =  
    class 
        interface IServiceProvider 
    end
public final class DataServiceOperationContext implements IServiceProvider

The DataServiceOperationContext type exposes the following members.

Properties

  Name Description
Public property AbsoluteRequestUri Get the request URI for the current operation.
Public property AbsoluteServiceUri Gets the base service URI for the request.
Public property IsBatchRequest Gets a value that indicates whether the current operation is part of a batch request.
Public property RequestHeaders Gets the request headers for the current operation.
Public property RequestMethod Gets the HTTP request method for the operation.
Public property ResponseHeaders Gets the response headers for the current operation.
Public property ResponseStatusCode Gets or sets the status code of the response.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetService Returns the service that provides custom operation.
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.Data.Services Namespace