Click or drag to resize

HttpClientBeginGetResponseStream Method

Begins an asynchronous response for a Stream object to use to read data.

Namespace: Crestron.SimplSharp.Net.Http
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public 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

HttpClientRequest
The asynchronous request for a response.
Exceptions
ExceptionCondition
ArgumentNullExceptionaRequest is NULL
InvalidOperationExceptionNo BeginRequest
Remarks
The 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