SocketError Property

SocketAsyncEventArgs.SocketError Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the result of the asynchronous socket operation.

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

public SocketError SocketError { get; set; }

Property Value

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft