C-DEngine 5.105

WebSocketServiceManager..::..TryGetServiceHost Method

Tries to get the WebSocket service host with the specified path.

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

Syntax


public bool TryGetServiceHost(
	string path,
	out WebSocketServiceHost host
)
Public Function TryGetServiceHost ( _
	path As String, _
	<OutAttribute> ByRef host As WebSocketServiceHost _
) As Boolean
public:
bool^ TryGetServiceHost(
	String^ path, 
	[OutAttribute] WebSocketServiceHost^% host
)

Parameters

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

Return Value

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