UnixDomainSocketEndPoint(String) 构造函数
定义
通过用于连接 unix 域套接字的文件路径初始化 UnixDomainSocketEndPoint 的新实例。Initializes a new instance of the UnixDomainSocketEndPoint with the file path to connect a unix domain socket over.
public:
UnixDomainSocketEndPoint(System::String ^ path);
public UnixDomainSocketEndPoint (string path);
new System.Net.Sockets.UnixDomainSocketEndPoint : string -> System.Net.Sockets.UnixDomainSocketEndPoint
Public Sub New (path As String)
参数
- path
- String
用于连接 unix 域套接字的路径。The path to connect a unix domain socket over.
例外
path 为 null。path is null.
path 的长度无效,无法在此平台上与域套接字一起使用。path is of an invalid length for use with domain sockets on this platform. 长度必须介于 1 与允许的本机路径长度之间。The length must be between 1 and the allowed native path length.
当前操作系统不支持 Unix 域套接字。The current OS does not support Unix Domain Sockets.