ReflectedMethodDescriptorProvider::TryGetMethod Method
.NET Framework 4.5 Namespace:
Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
true if the method matching the name/parameter set is found on the hub, otherwise false.
Searches the specified hub for the specified method.
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
public: virtual bool TryGetMethod( HubDescriptor^ hub, String^ method, [OutAttribute] MethodDescriptor^% descriptor, IList<IJsonValue^>^ parameters ) sealed
Parameters
- hub
- Type: Microsoft.AspNet.SignalR.Hubs::HubDescriptor
Hub to search for the specified method on.
- method
- Type: System::String
The method name to search for.
- descriptor
- Type: Microsoft.AspNet.SignalR.Hubs::MethodDescriptor%
If successful, the MethodDescriptor that was resolved.
- parameters
- Type: System.Collections.Generic::IList<IJsonValue>
The set of parameters that will be used to help locate a specific overload of the specified method.
Return Value
Type: System::Booleantrue if the method matching the name/parameter set is found on the hub, otherwise false.
Implements
IMethodDescriptorProvider::TryGetMethod(HubDescriptor, String, MethodDescriptor%, IList<IJsonValue>)In the case that there are multiple overloads of the specified method, the parameters parameter set helps determine exactly which instance of the overload should be resolved. If there are multiple overloads found with the same number of matching parameters, none of the methods will be returned because it is not possible to determine which overload of the method was intended to be resolved.
Show: