SoapWebRequest.EndGetRequestStream Method

Completes the asynchronous request to get a System.IO.Stream that is sent to an XML Web service.

Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim asyncResult As IAsyncResult
Dim returnValue As Stream
Dim soapWebRequest1 As SoapWebRequest
returnValue = soapWebRequest1.EndGetRequestStream(asyncResult)

Syntax

'Declaration
Public Overrides Function EndGetRequestStream( _
    ByVal asyncResult As IAsyncResult _
) As Stream
public override Stream EndGetRequestStream(
    IAsyncResult asyncResult
);
public: virtual Stream^ EndGetRequestStream(
    IAsyncResult^ asyncResult
);
public Stream EndGetRequestStream(
    IAsyncResult asyncResult
);
public override function EndGetRequestStream(
     asyncResult : IAsyncResult
) : Stream;

Parameters

  • asyncResult
    An System.IAsyncResult that references a pending request for a stream.

Return Value

A System.IO.Stream to write data to.

Exceptions

Exception type Condition
System.InvalidOperationException

There is no asynchronous operation to complete.

Remarks

The EndGetRequestStream method completes an asynchronous stream request that was started by the BeginGetRequestStream method.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SoapWebRequest Class
Microsoft.Web.Services2 Namespace
BeginGetRequestStream

Other Resources

SoapWebRequest Members