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
- hub
Type: Microsoft.AspNet.SignalR.Hubs.HubDescriptor
Hub descriptor object
- method
Type: System.String
Name of the method.
- descriptor
Type: Microsoft.AspNet.SignalR.Hubs.MethodDescriptor%
Descriptor of the method, if found. Null otherwise.
- parameters
Type: System.Collections.Generic.IList<IJsonValue>
Method parameters to match.
Return Value
Type: System.Boolean
True, if a method has been found.