Condividi tramite


SocketAsyncEventArgs.SocketError Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the result of the asynchronous socket operation.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

Syntax

'Declaration
Public Property SocketError As SocketError
public SocketError SocketError { get; set; }

Property Value

Type: System.Net.Sockets.SocketError
The result of the asynchronous socket operation.

Remarks

This property provides the completion status of an asynchronous socket operation. A value of SocketError.Success indicates successful completion of an operation. This property is primarily used in an application’s event handler routine.

This property is used with all of the asynchronous socket methods: Socket.ConnectAsync, Socket.ReceiveAsync, and Socket.SendAsync.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.