Asynchronously gets the authentication token for the Session.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: (


public void GetAuthenticationTokenAsync(
	EventHandler<GetAuthenticationTokenCompletedEventArgs> completedCallback,
	Object userState
Visual Basic
Public Sub GetAuthenticationTokenAsync ( _
	completedCallback As EventHandler(Of GetAuthenticationTokenCompletedEventArgs), _
	userState As Object _


Type: System..::..EventHandler<(Of <(<'GetAuthenticationTokenCompletedEventArgs>)>)>
Type: System..::..Object


The authentication token can be used to create a new separate session without requiring user credentials, for example using web services.

When completed, the completedCallback delegate is invoked on a thread appropriate to the application-model, such as the GUI thread in a UI application. The Error property of the AsyncCompletedEventArgs-derived object passed to the delegate will contain any exceptions thrown while executing the asynchronous task. See the synchronous version of this method for more detailed error information. For more information on async method calls, see How Async Calls Work.

The request timed out while waiting for a response.The Session does not have a valid connection.The Session has been disposed.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also