DebugExtensionsWhenCalledFromTEvent Method (TEvent, String) |
Adds condition to check if the handler is called from specific stack trace
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax public static TEvent WhenCalledFrom<TEvent>(
this TEvent ev,
params string[] methods
)
where TEvent : Object, IConditionalEvent<TEvent>
Parameters
- ev
- Type: TEvent
Event object - methods
- Type: SystemString
Methods to match at the stack trace
Type Parameters
- TEvent
Return Value
Type:
TEventUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also