Share via


ODataBatchHttpRequestMessageExtensions.GetODataBatchId Method (HttpRequestMessage)

 

Retrieves the Batch ID associated with the request.

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

Syntax

public static Nullable<Guid> GetODataBatchId(
    this HttpRequestMessage request
)
public:
[ExtensionAttribute]
static Nullable<Guid> GetODataBatchId(
    HttpRequestMessage^ request
)
static member GetODataBatchId : 
        request:HttpRequestMessage -> Nullable<Guid>
<ExtensionAttribute>
Public Shared Function GetODataBatchId (
    request As HttpRequestMessage
) As Nullable(Of Guid)

Parameters

Return Value

Type: System.Nullable<Guid>

The Batch ID associated with this request, or null if there isn't one.

See Also

ODataBatchHttpRequestMessageExtensions Class
System.Web.Http.OData.Batch Namespace

Return to top