IMethodDescriptorProvider.TryGetMethod Method

.NET Framework 4

Tries to retrieve a method.

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

Syntax

'Declaration
Function TryGetMethod ( _
    hub As HubDescriptor, _
    method As String, _
    <OutAttribute> ByRef descriptor As MethodDescriptor, _
    parameters As IList(Of IJsonValue) _
) As Boolean
'Usage
Dim instance As IMethodDescriptorProvider 
Dim hub As HubDescriptor 
Dim method As String 
Dim descriptor As MethodDescriptor 
Dim parameters As IList(Of IJsonValue)
Dim returnValue As Boolean 

returnValue = instance.TryGetMethod(hub, _
    method, descriptor, parameters)
bool TryGetMethod(
    HubDescriptor hub,
    string method,
    out MethodDescriptor descriptor,
    IList<IJsonValue> parameters
)
bool TryGetMethod(
    HubDescriptor^ hub, 
    String^ method, 
    [OutAttribute] MethodDescriptor^% descriptor, 
    IList<IJsonValue^>^ parameters
)
abstract TryGetMethod : 
        hub:HubDescriptor * 
        method:string * 
        descriptor:MethodDescriptor byref * 
        parameters:IList<IJsonValue> -> bool
function TryGetMethod(
    hub : HubDescriptor, 
    method : String, 
    descriptor : MethodDescriptor, 
    parameters : IList<IJsonValue>
) : boolean

Parameters

Return Value

Type: System.Boolean
True, if a method has been found.

See Also

Reference

IMethodDescriptorProvider Interface

Microsoft.AspNet.SignalR.Hubs Namespace