errorHandler Property

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

errorHandler Property

Gets or sets the current error handler.

[Visual Basic]

Implementation Syntax

To get the current error handler:

Set oErrorHandler = oMXValidator.errorHandler

To set the current error handler:

Set oMXValidator.errorHandler = oErrorHandler
[C/C++]

Syntax

[propget] HRESULT errorHandler(
   [out, retval] IUnknown ** oHandler);
[propputref] HRESULT errorHandler(
[in] IUnknown * oHandler);

Parameters

oHandler [out, retval]
A reference to the current error handler of the MXValidator, either an IVBSAXErrorHandler or an ISAXErrorHandler.
oHandler [in]
Either an IVBSAXErrorHandler or an ISAXErrorHandler.

Return Values

S_OK
The value returned if no errors occur.
E_FAIL
The value returned if a reference to the error handler could not be set or retrieved.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

ISAXErrorHandler/IVBSAXErrorHandler Interface

Applies to: MXValidator CoClass