Share via


HttpRequestMessageExtensions.GetETag Method

 

Namespace:   System.Web.OData.Extensions
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetETag(HttpRequestMessage, EntityTagHeaderValue)

Gets the OData ETag from the given request.

System_CAPS_pubmethodSystem_CAPS_static 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

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

Return Value

Type: System.Web.OData.Formatter.ETag<TEntity>

The parsed ETag<TEntity>.

Type Parameters

  • TEntity

Return to top