Click or drag to resize
DebugExtensionsWhenCalledFromTEvent Method (TEvent, Delegate)
Adds condition to check if the handler is called from specific stack trace

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public static TEvent WhenCalledFrom<TEvent>(
	this TEvent ev,
	params Delegate[] methods
)
where TEvent : Object, IConditionalEvent<TEvent>

Parameters

ev
Type: TEvent
Event object
methods
Type: SystemDelegate
Method to match

Type Parameters

TEvent

Return Value

Type: TEvent

Usage 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