Begins an asynchronous operation to wait for a client to connect.
Assembly: System.Core (in System.Core.dll)
[HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading = true)] public IAsyncResult BeginWaitForConnection( AsyncCallback callback, Object state )
- Type: System.AsyncCallback
The method to call when a client connects to the NamedPipeServerStream object.
- Type: System.Object
A user-provided object that distinguishes this particular asynchronous request from other requests.
Return ValueType: System.IAsyncResult
An object that references the asynchronous request.
This is the asynchronous equivalent of WaitForConnection.
EndWaitForConnection must be called exactly once for every call to .
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.