Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Session Dim identity As IUserIdentity Dim callback As AsyncCallback Dim userData As Object Dim value As IAsyncResult value = instance.BeginConnect(identity, callback, userData) |
C# | |
---|---|
public IAsyncResult BeginConnect( IUserIdentity identity, AsyncCallback callback, object userData ) |
Parameters
- identity
- The user credentials or null for anonymous access
- callback
- The callback to call when the async processing completes.
- userData
- The user data that is passed to the callback.
Return Value
The object that must be passed to the EndRead method.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x