contentHandler Property

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 - SAX2 Reference

contentHandler Property

Gets or sets the current content handler.

[Visual Basic]

Usage Syntax

To get the current content handler:

Set oContentHandler = oMXValidator.contentHandler

To set the current content handler:

Set oMXValidator.contentHandler = oContentHandler
[C/C++]

Syntax

[propget]
HRESULT contentHandler(
[out, retval] IUnknown ** oHandler);
[propputref]
HRESULT contentHandler(
   [in] IUnknown *oHandler);
oHandler [out, retval]
A reference to the current content handler of the MXValidator, either an IVBSAXcontentHandler or an ISAXContentHandler.
oHandler [in]
Either an IVBSAXContentHandler or an ISAXContentHandler.

Return Values

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

Remarks

The contentHandler property can accept either an IVBSAXContentHandler or an ISAXContentHandler.

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

ISAXContentHandler/IVBSAXContentHandler Interface

Applies to: MXValidator CoClass