TransportType TransportType TransportType TransportType Enum

定义

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

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

字段

All All All All 3

所有传输类型。All transport types.

Connectionless Connectionless Connectionless Connectionless 1

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

ConnectionOriented ConnectionOriented ConnectionOriented ConnectionOriented 2

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

Tcp Tcp Tcp Tcp 2

TCP 传输。TCP transport.

Udp Udp Udp Udp 1

UDP 传输。UDP transport.

注解

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

适用于

另请参阅