SelectMode Enumeration

SelectMode Enumeration

 

Defines the polling modes for the Socket.Poll method.

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

type SelectMode

Member nameDescription
SelectError

Error status mode.

SelectRead

Read status mode.

SelectWrite

Write status mode.

The SelectMode enumeration defines the polling modes that can be passed to the Socket.Poll method. Use the SelectRead value to determine if a listening Socket has incoming connection requests. Use the SelectWrite value to determine if a Socket is writeable. Use the SelectError value to determine if there is an error condition present on the Socket. For explanations of writeability, readability, and the presence of error conditions, see the Socket.Poll method.

The following example checks the status of a Socket using all three SelectMode enumeration values. A call to Poll using the SelectWrite enumerated value should return true.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft