Sets the value of a property.
Sub putProperty(strName As String, varValue As Variant)
oMXValidator.putProperty(strName, varValue)
The following table describes the results of calling the putProperty
method.
Property | Returns |
---|---|
schemas |
Raises a trappable error if the property value cannot be set. |
schema-declaration-handler |
Sets the value of the property. |
Other properties | Trappable error. |
This example illustrates how to use the MXValidator
CoClass. The sample code performs the following tasks.
MXValidator
.The example uses a resource file, books.xsd. We've provided source files for the sample in Visual Basic.
HRESULT putProperty( [in] BSTR strName, [in] VARIANT varValue);
The following table describes the results of calling the putProperty
method.
Property | Returns |
---|---|
"schemas" |
S_OK (Not parsing.)
E_FAIL (Parsing.) |
"schema-declaration-handler" |
S_OK (Regardless of parsing mode.) |
Other properties | E_FAIL |
The following properties are defined for the MXValidator
:
"schemas"
MXValidator
when it validates the XML stream.
Datatype XMLSchemaCache
.
Access (parsing) Read-only; (not parsing) Read/Write.
"schema-declaration-handler"
MXValidator
.
Datatype Event handler that implements the IMXSchemaDeclHandler
interface.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
Applies to: MXValidator CoClass