一款简单易用的基础网络通讯组件库。

IClientCollectionTClientItem 属性

通过客户端的唯一标识符(Id)获取客户端对象。如果找不到对应的客户端,应返回null。

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
TClient this[
	string id
] { get; }

参数

id  String
客户端的唯一标识符

返回值

TClient
对应的客户端对象,如果找不到则返回null

参见