Begins asynchronously opening a request's content stream for writing.
Assembly: System (in System.dll)
'Declaration <HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading := True)> _ Public Overrides Function BeginGetRequestStream ( _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult
- Type: System.AsyncCallback
An AsyncCallback delegate that references the method to invoke when the operation is complete.
- Type: System.Object
A user-defined object that contains information about the operation. This object is passed to the callback delegate when the operation completes.
You must complete the asynchronous operation by calling the EndGetRequestStream method. Typically, EndGetRequestStream is called by the method referenced by callback. To determine the state of the operation, check the properties in the IAsyncResult object returned by this method.
This method does not block while waiting for the stream. To block, call GetRequestStream in place of this method.
For detailed information about using the asynchronous programming model, see Calling Synchronous Methods Asynchronously.
This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: ExternalThreading. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
This method generates network traffic.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.