HttpRequestMessageExtensions.GetETag Method
Namespace: System.Web.OData.Extensions
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
GetETag(HttpRequestMessage, EntityTagHeaderValue) | Gets the OData ETag from the given request. |
|
GetETag<TEntity>(HttpRequestMessage, EntityTagHeaderValue) | Gets the ETag<TEntity> from the given request. |
See Also
HttpRequestMessageExtensions Class
System.Web.OData.Extensions Namespace
Return to top
HttpRequestMessageExtensions.GetETag Method (HttpRequestMessage, EntityTagHeaderValue)
Gets the OData ETag from the given request.
Syntax
public static ETag GetETag(
this HttpRequestMessage request,
EntityTagHeaderValue entityTagHeaderValue
)
public:
[ExtensionAttribute]
static ETag^ GetETag(
HttpRequestMessage^ request,
EntityTagHeaderValue^ entityTagHeaderValue
)
static member GetETag :
request:HttpRequestMessage *
entityTagHeaderValue:EntityTagHeaderValue -> ETag
<ExtensionAttribute>
Public Shared Function GetETag (
request As HttpRequestMessage,
entityTagHeaderValue As EntityTagHeaderValue
) As ETag
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request.
entityTagHeaderValue
Type: System.Net.Http.Headers.EntityTagHeaderValueThe entity tag header value.
Return Value
Type: System.Web.OData.Formatter.ETag
The parsed ETag.
Return to top
HttpRequestMessageExtensions.GetETag<TEntity> Method (HttpRequestMessage, EntityTagHeaderValue)
Gets the ETag<TEntity> from the given request.
Syntax
public static ETag<TEntity> GetETag<TEntity>(
this HttpRequestMessage request,
EntityTagHeaderValue entityTagHeaderValue
)
public:
generic<typename TEntity>
[ExtensionAttribute]
static ETag<TEntity>^ GetETag(
HttpRequestMessage^ request,
EntityTagHeaderValue^ entityTagHeaderValue
)
static member GetETag<'TEntity> :
request:HttpRequestMessage *
entityTagHeaderValue:EntityTagHeaderValue -> ETag<'TEntity>
<ExtensionAttribute>
Public Shared Function GetETag(Of TEntity) (
request As HttpRequestMessage,
entityTagHeaderValue As EntityTagHeaderValue
) As ETag(Of TEntity)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request.
entityTagHeaderValue
Type: System.Net.Http.Headers.EntityTagHeaderValueThe entity tag header value.
Return Value
Type: System.Web.OData.Formatter.ETag<TEntity>
The parsed ETag<TEntity>.
Type Parameters
- TEntity
Return to top