WebEventManager::Flush Method (String)
Flushes the event buffer for the specified provider.
Assembly: System.Web (in System.Web.dll)
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)] [AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] [SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)] public: static void Flush( String^ providerName )
Parameters
- providerName
- Type: System::String
The name of the provider.
| Exception | Condition |
|---|---|
| ArgumentException | providerName does not match any of the existing providers. |
The Flush method flushes the event buffer for the specified provider. The healthMonitoring section of the configuration must contain the specified provider in order to flush the event buffer. If the provider name does not match any of the existing providers in the healthMonitoring section, an ArgumentException exception is thrown.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
- SecurityPermission
for full access to the resource protected by the permission. Associated enumeration: PermissionState::Unrestricted
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.