IWebEventCustomEvaluator::CanFire Method (WebBaseEvent^, RuleFiringRecord^)

 

Evaluates whether an event should be raised.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

bool CanFire(
	WebBaseEvent^ raisedEvent,
	RuleFiringRecord^ record
)

Parameters

raisedEvent
Type: System.Web.Management::WebBaseEvent^

The event to raise.

record
Type: System.Web.Management::RuleFiringRecord^

The RuleFiringRecord containing information about the event.

Return Value

Type: System::Boolean

true if the event should be raised; otherwise, false.

If the custom event evaluator returns true, the event is raised and then processed by the associated provider.

The following code example shows a custom implementation of the CanFire method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: