This documentation is archived and is not being maintained.

WebBaseEvent.Raise Method ()

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

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

public virtual void Raise ()
public void Raise ()
public function Raise ()
Not applicable.

If you override this method, the event raised is your custom event.


Medium trust or higher is required to raise an event.

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

// Raises the SampleWebBaseEvent.
public override void Raise()
    // Perform custom processing. 
    customRaisedMsg =
      string.Format("Event raised at: {0}",

    // Raise the event.

  • Demand  All callers higher in the call stack are required to have been granted the permission specified by the current permission object. For more information, see Security Demands

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0