TableHttpRequestMessageExtensions.GetVersionFromIfMatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A valid version byte array representing the version, or null if none were present.
- Attributes
-
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute