IHubDescriptorProvider.TryGetHub Method

.NET Framework 4

Tries to retrieve hub with a given name.

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Function TryGetHub ( _
    hubName As String, _
    <OutAttribute> ByRef descriptor As HubDescriptor _
) As Boolean
'Usage
Dim instance As IHubDescriptorProvider 
Dim hubName As String 
Dim descriptor As HubDescriptor 
Dim returnValue As Boolean 

returnValue = instance.TryGetHub(hubName, _
    descriptor)
bool TryGetHub(
    string hubName,
    out HubDescriptor descriptor
)
bool TryGetHub(
    String^ hubName, 
    [OutAttribute] HubDescriptor^% descriptor
)
abstract TryGetHub : 
        hubName:string * 
        descriptor:HubDescriptor byref -> bool
function TryGetHub(
    hubName : String, 
    descriptor : HubDescriptor
) : boolean

Parameters

Return Value

Type: System.Boolean
True, if hub has been found

See Also

Reference

IHubDescriptorProvider Interface

Microsoft.AspNet.SignalR.Hubs Namespace