Sitecore 5.1.1 API

MainUtil.GetCallerMethod Method 

Gets a reference to a method on the call stack.

[Visual Basic]
Public Shared Function GetCallerMethod( _
   ByVal indexInStack As Integer _
) As MethodBase
[C#]
public static MethodBase GetCallerMethod(
   int indexInStack
);

Parameters

indexInStack
Index of method on the stack.

Return Value

A method.

Remarks

Use 1 to get the name of the function calling GetStackMethod, 2 to get the function calling that etc.

See Also

MainUtil Class | Sitecore Namespace | GetCallerName | GetCallerType