System.Net.Sockets.SocketAsyncEventArgs.UserToken Property

Gets or sets a user or application object associated with this asynchronous socket operation.

Syntax

public object UserToken { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This property can be used by an application to associate an application state object with the System.Net.Sockets.SocketAsyncEventArgs object. Primarily, this property is a way for an application to pass state to the application’s event handler (for example, the asynchronous operation completion method).

This property is used with all of the asynchronous socket (xxxAsync) methods.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0