Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System.Web
Methods
 ClearError Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
HttpServerUtility.ClearError Method

Clears the previous exception.

[Visual Basic]
Public Sub ClearError()
[C#]
public void ClearError();
[C++]
public: void ClearError();
[JScript]
public function ClearError();

Example

The following example clears the last exception that was thrown.

[Visual Basic] 
Server.ClearError()
   

[C#] 
Server.ClearError();
   

[C++] 
Server->ClearError();
   

[JScript] 
Server.ClearError()

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpServerUtility Class | HttpServerUtility Members | System.Web Namespace

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker