HttpRequestMessageExtensions.GetETag Method
Namespace: System.Web.Http.OData.Extensions
Assembly: System.Web.Http.OData (in System.Web.Http.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.Http.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.Http.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.Http.OData.Formatter.ETag<TEntity>
The parsed ETag<TEntity>.
Return to top