RouteAttributeHelper.CreateHandlerDelegate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateHandlerDelegate(AgentApplication, MethodInfo, Type) |
Creates a bound delegate of the given |
| CreateHandlerDelegate<T>(AgentApplication, MethodInfo) |
Creates a bound delegate from |
CreateHandlerDelegate(AgentApplication, MethodInfo, Type)
Creates a bound delegate of the given delegateType from method,
handling both instance and static methods.
For instance methods the delegate is bound to app; for static methods no target is bound.
public static Delegate CreateHandlerDelegate(Microsoft.Agents.Builder.App.AgentApplication app, System.Reflection.MethodInfo method, Type delegateType);
static member CreateHandlerDelegate : Microsoft.Agents.Builder.App.AgentApplication * System.Reflection.MethodInfo * Type -> Delegate
Public Shared Function CreateHandlerDelegate (app As AgentApplication, method As MethodInfo, delegateType As Type) As Delegate
Parameters
- app
- AgentApplication
- method
- MethodInfo
- delegateType
- Type
Returns
Applies to
CreateHandlerDelegate<T>(AgentApplication, MethodInfo)
Creates a bound delegate from method, handling both instance and static methods.
For instance methods the delegate is bound to app; for static methods no target is bound.
public static T CreateHandlerDelegate<T>(Microsoft.Agents.Builder.App.AgentApplication app, System.Reflection.MethodInfo method) where T : class, Delegate;
static member CreateHandlerDelegate : Microsoft.Agents.Builder.App.AgentApplication * System.Reflection.MethodInfo -> 'T (requires 'T : null and 'T :> Delegate)
Public Shared Function CreateHandlerDelegate(Of T As {Class, Delegate}) (app As AgentApplication, method As MethodInfo) As T
Type Parameters
- T
Parameters
- app
- AgentApplication
- method
- MethodInfo