Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Server.Client Namespace / HubConnection Class / CanConnect Method / CanConnect(ServerConfiguration) Method
The configuration to test

In This Topic
    CanConnect(ServerConfiguration) Method
    In This Topic
    Attempts to connected to the specified hub and returns information about the connection status. The connection is then dropped.
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(Gibraltar.Server.Client.HubConnection/d__36)> 
    Public Overloads Shared Function CanConnect( _ 
       ByVal configuration As ServerConfiguration _ 
    ) As Task(Of HubConnectionStatus)
    [AsyncStateMachine(Gibraltar.Server.Client.HubConnection/d__36)] 
    public static Task<HubConnectionStatus> CanConnect( 
       ServerConfiguration configuration 
    )

    Parameters

    configuration
    The configuration to test

    Return Value

    The connection status information
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also