C-DEngine 5.105

WebSocketSessionManager..::..TryGetSession Method

Tries to get the session with the specified id.

Namespace:  WebSocketSharp.Server
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public bool TryGetSession(
	string id,
	out IWebSocketSession session
)
Public Function TryGetSession ( _
	id As String, _
	<OutAttribute> ByRef session As IWebSocketSession _
) As Boolean
public:
bool^ TryGetSession(
	String^ id, 
	[OutAttribute] IWebSocketSession^% session
)

Parameters

id
Type: String
A String that represents the ID of the session to find.
session
Type: WebSocketSharp.Server..::..IWebSocketSession%
When this method returns, a IWebSocketSession instance that provides the access to the information in the session, or nullNothingnullptra null reference (Nothing in Visual Basic) if it's not found. This parameter is passed uninitialized.

Return Value

true if the session is successfully found; otherwise, false.