Share via


TableHttpRequestMessageExtensions.GetVersionFromIfMatch Method

Definition

Gets the version of a table item from the HTTP IfMatch header. If the IfMatch contains an invalid value then an System.Web.Http.HttpResponseException is thrown containing an System.Net.Http.HttpResponseMessage with status code System.Net.HttpStatusCode.BadRequest.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification="Response is disposed by caller.")]
public static byte[] GetVersionFromIfMatch(this System.Net.Http.HttpRequestMessage request);
[<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification="Response is disposed by caller.")>]
static member GetVersionFromIfMatch : System.Net.Http.HttpRequestMessage -> byte[]
<Extension()>
Public Function GetVersionFromIfMatch (request As HttpRequestMessage) As Byte()

Parameters

request
System.Net.Http.HttpRequestMessage

Returns

System.Byte[]

A valid version byte array representing the version, or null if none were present.

Attributes
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute

Applies to