Export (0) Print
Expand All

HttpContext.AddError Method

Adds an exception to the exception collection for the current HTTP request.

[Visual Basic]
Public Sub AddError( _
   ByVal errorInfo As Exception _
)
[C#]
public void AddError(
 Exception errorInfo
);
[C++]
public: void AddError(
 Exception* errorInfo
);
[JScript]
public function AddError(
   errorInfo : Exception
);

Parameters

errorInfo
The Exception object to add to the exception collection.

Requirements

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

See Also

HttpContext Class | HttpContext Members | System.Web Namespace

Show:
© 2014 Microsoft