Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SocketShutdown Enum

Definition

Namespace:
System.Net.Sockets
Assemblies:
System.dll, System.Net.Sockets.dll
Assemblies:
netstandard.dll, System.Net.Sockets.dll
Assembly:
System.Net.Sockets.dll
Assembly:
System.dll
Assembly:
netstandard.dll
Source:
SocketShutdown.cs
Source:
SocketShutdown.cs
Source:
MulticastOption.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Defines constants that are used by the Shutdown(SocketShutdown) method.

public enum class SocketShutdown
public enum SocketShutdown
type SocketShutdown = 
Public Enum SocketShutdown
Inheritance
SocketShutdown

Fields

Name Value Description
Receive 0

Disables a Socket for receiving. This field is constant.

Send 1

Disables a Socket for sending. This field is constant.

Both 2

Disables a Socket for both sending and receiving. This field is constant.

Remarks

The SocketShutdown enumeration defines the values that can be passed to the Socket.Shutdown method.

Applies to


Feedback

Was this page helpful?