SocketShutdown 枚举

定义

定义 Shutdown(SocketShutdown) 方法使用的常量。Defines constants that are used by the Shutdown(SocketShutdown) method.

public enum class SocketShutdown
public enum SocketShutdown
type SocketShutdown = 
Public Enum SocketShutdown
继承
SocketShutdown

字段

Both 2

为发送和接收禁用 SocketDisables a Socket for both sending and receiving. 此字段为常数。This field is constant.

Receive 0

禁用接收的 SocketDisables a Socket for receiving. 此字段为常数。This field is constant.

Send 1

禁用发送的 SocketDisables a Socket for sending. 此字段为常数。This field is constant.

注解

枚举定义可传递Socket.Shutdown给方法的值。 SocketShutdownThe SocketShutdown enumeration defines the values that can be passed to the Socket.Shutdown method.

适用于