FormatterContext Constructor (HttpResponseMessage, Boolean)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Instantiates a new instance of the FormatterContext class to use to serialize or deserialize a response.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Sub New ( _
response As HttpResponseMessage, _
isRead As Boolean _
)
public FormatterContext(
HttpResponseMessage response,
bool isRead
)
public:
FormatterContext(
HttpResponseMessage^ response,
bool isRead
)
new :
response:HttpResponseMessage *
isRead:bool -> FormatterContext
public function FormatterContext(
response : HttpResponseMessage,
isRead : boolean
)
Parameters
- response
Type: System.Net.Http.HttpResponseMessage
The HttpResponseMessage to serialize or deserialize.
- isRead
Type: System.Boolean
Indicates if this is context is meant to select a formatter to read or to write.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.