HttpResponseMessageExtensions.TryGetContentValue<T> Method (HttpResponseMessage, T)
Attempts to retrieve the value of the content for the HttpResponseMessageExtensions.
Namespace: System.Net.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public static bool TryGetContentValue<T>(
this HttpResponseMessage response,
out T value
)
public:
generic<typename T>
[ExtensionAttribute]
static bool TryGetContentValue(
HttpResponseMessage^ response,
[OutAttribute] T% value
)
static member TryGetContentValue<'T> :
response:HttpResponseMessage *
value:'T byref -> bool
<ExtensionAttribute>
Public Shared Function TryGetContentValue(Of T) (
response As HttpResponseMessage,
<OutAttribute> ByRef value As T
) As Boolean
Parameters
response
Type: System.Net.Http.HttpResponseMessageThe response of the operation.
value
Type: TThe value of the content.
Return Value
Type: System.Boolean
The result of the retrieval of value of the content.
Type Parameters
- T
The type of the value to retrieve.
See Also
HttpResponseMessageExtensions Class
System.Net.Http Namespace
Return to top