Edit

Share via


WitBatchResponse.ParseBody<T>(MediaTypeFormatter) Method

Definition

Parses the body content of batch response with given data type.

public T ParseBody<T>(System.Net.Http.Formatting.MediaTypeFormatter formatter = null) where T : class;
member this.ParseBody : System.Net.Http.Formatting.MediaTypeFormatter -> 'T (requires 'T : null)
Public Function ParseBody(Of T As Class) (Optional formatter As MediaTypeFormatter = null) As T

Type Parameters

T

Data type to parse response body

Parameters

formatter
System.Net.Http.Formatting.MediaTypeFormatter

Body content formatter. Default is Microsoft.VisualStudio.Services.WebApi.VssJsonMediaTypeFormatter

Returns

T

Parse body object in given type. Returns null if body content is empty.

Applies to