WitBatchResponse.ParseBody<T>(MediaTypeFormatter) 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.
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
Parse body object in given type. Returns null if body content is empty.