HttpClientBeginGetResponseStream Method |
Begins an asynchronous response for a Stream object to use to read data.
Namespace: Crestron.SimplSharp.Net.HttpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic HttpClientRequest BeginGetResponseStream(
HTTPStreamResponseCallbackEx callback,
HttpClientRequest aRequest,
Object user
)
Parameters
- callback HTTPStreamResponseCallbackEx
- The HTTPStreamResponseCallbackEx delegate
- aRequest HttpClientRequest
- The state object for this request
- user Object
- The user defined status object
Return Value
HttpClientRequestThe asynchronous request for a response.
Exceptions
RemarksThe BeginGetResponse method starts an asynchronous request for a response from the Internet resource.
The asynchronous callback method uses the EndGetResponse method to return the actual WebResponse.
Example
// Start the asynchronous operation to get the response
request.ThisClient.BeginGetResponseStream(new HTTPStreamResponseCallbackEx(GetResponseCallback), request, status);
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also