getFeature Method
Returns a Boolean value that indicates whether a feature is enabled or disabled.
The MXValidator
CoClass supports the following features:
"exhaustive-errors"
"use-inline-schema"
"use-schema-location"
The Boolean return value indicates whether a feature is enabled or disabled. For example, if getFeature("exhaustive-errors")
returns True, the MXValidator
will return information for all validation errors.
Implementation Syntax
Function getFeature(strName As String) As Boolean
Usage Syntax
boolFeature = oMXValidator.getFeature(strName)
Parameters
- strName
- A string representing the name of the feature.
Return Values
- boolFeature
- A Boolean (True/False) value that indicates whether the feature is enabled or disabled. The following table indicates the features implemented for the
MXValidator
.Feature Returns "exhaustive-errors"
"use-inline-schema"
"use-schema-location"
A Boolean (True/False) value indicating whether the feature is enabled or disabled. Other features Trappable error.
Syntax
HRESULT getFeature( [in] BSTR strName, [out, retval] VARIANT_BOOL *fValue);
Parameters
- strName [in]
- The name of the feature.
- fValue [out, retval]
- Set to indicate whether the feature is enabled (TRUE) or disabled (FALSE)
Return Values
The following table indicates the features implemented for the MXValidator
.
Feature | Returns |
---|---|
"exhaustive-errors"
|
S_OK — The fValue parameter contains a Boolean value indicating whether the feature specified in strName is enabled (TRUE) or disabled (FALSE). |
Other features | E_INVALIDARG |
Remarks
Settings for the features of the MXValidator
are as follows:
"exhaustive-errors"
- True — (default) Report all validation errors. This feature is always enabled, and will always return TRUE.
False — The
getFeature
method of theMXValidator
will not return FALSE. This feature cannot be disabled.Access — (parsing) Read-only; (not parsing) Read/write.
"use-inline-schema"
- True — Use inline schemas for validation.
False — (default) Do not use inline schemas for validation. Treat any inline schemas as XML instead.
Access — (parsing) Read-only; (not parsing) Read/write.
"use-schema-location"
- True — (default) Use the
xsi:schemaLocation
andxsi:noNamespaceSchemaLocation
attributes to load and use schemas.False — Treat any schema location attributes as generic attributes.
Access — (parsing) Read-only; (not parsing) Read/write.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
See Also
Applies to: MXValidator CoClass