TransportType 枚举

定义

SocketPermissionSocket 类定义传输类型。Defines transport types for the SocketPermission and Socket classes.

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

字段

All 3

所有传输类型。All transport types.

Connectionless 1

传输类型是无连接的,如 UDP。The transport type is connectionless, such as UDP. 指定该值的效果与指定 Udp 相同。Specifying this value has the same effect as specifying Udp.

ConnectionOriented 2

传输是面向连接的,如 TCP。The transport is connection oriented, such as TCP. 指定该值的效果与指定 Tcp 相同。Specifying this value has the same effect as specifying Tcp.

Tcp 2

TCP 传输。TCP transport.

Udp 1

UDP 传输。UDP transport.

注解

TransportType 枚举为 SocketPermissionSocket 类定义传输类型。The TransportType enumeration defines transport types for the SocketPermission and Socket classes.

适用于

另请参阅