TcpSessionClientBaseProtectedTryGetClient 方法
尝试通过Id获得对应的客户端
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected bool ProtectedTryGetClient(
string id,
out TcpSessionClientBase sessionClient
)
Protected Function ProtectedTryGetClient (
id As String,
<OutAttribute> ByRef sessionClient As TcpSessionClientBase
) As Boolean
member ProtectedTryGetClient :
id : string *
sessionClient : TcpSessionClientBase byref -> bool
- id String
- 客户端的唯一标识符
- sessionClient TcpSessionClientBase
- 输出参数,用于返回找到的客户端实例
Boolean如果找到对应的客户端,则返回true;否则返回false