putFeature Method

MSXML 5.0 SDK

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

putFeature Method

Configures a feature.

The MXValidator CoClass only supports the following feature:

  • "exhaustive-errors"
[Visual Basic]

Implementation Syntax

Sub putFeature(strName As String, varValue as Variant)

Usage Syntax

oMXValidator.putFeature(strName, varValue)
[C/C++]

Syntax

HRESULT putFeature(
   [in] BSTR strName,
   [in] VARIANT_BOOL fValue);

Return Values

S_OK
The fValue parameter is TRUE (not parsing).
E_FAIL
The fValue parameter is FALSE (parsing).
E_INVALIDARG
The value returned if the argument provided for this feature is not recognized.

Remarks

If the putFeature method fails, either because the feature setting could not be changed, or because an invalid feature name was passed to the method, a trappable error is raised.

The "exhaustive-errors" feature reports all validation errors. It is always enabled and only returns True.

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

getFeature Method

Applies to: MXValidator CoClass