WebBaseEvent::Raise Method (WebBaseEvent^)

 

Raises the specified event by notifying any configured provider that the event has occurred.

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

public:
[AspNetHostingPermissionAttribute(SecurityAction::Demand, Level = AspNetHostingPermissionLevel::Medium)]
static void Raise(
	WebBaseEvent^ eventRaised
)

Parameters

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

A WebBaseEvent object.

Exception Condition
HttpException

The EventCode property of eventRaised has a value that is reserved for ASP.NET.

This method raises the specified event by notifying any configured provider that the event has occurred.

System_CAPS_noteNote

Medium trust or higher is required to raise an event.

The following code example shows how to use the Raise method.

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

.NET Framework
Available since 2.0
Return to top
Show: