getProperty Method

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 - SAX2 Reference

getProperty Method

Returns the current value of a property.

The MXValidator CoClass implements the following properties:

  • "schemas"
  • "schema-declaration-handler"
[Visual Basic]

Implementation Syntax

Function getProperty(strName As String) As Variant

Usage Syntax

varValue = oMXValidator.getProperty(strName)

Return Values

A variant containing the current value of the property. The following table describes the properties defined for the MXValidator object.

Property Returns
"schemas"

"schema-declaration-handler"

Current value of the property.
Other properties Trappable error.

[C/C++]

Syntax

HRESULT getProperty(
[in] BSTR strName,
[out, retval] VARIANT * varValue);

Return Values

Property Returns
"schemas"

"schema-declaration-handler"

S_OK — The varValue parameter contains the current value of the property.
Other properties E_INVALIDARG — The property is not recognized.

Remarks

The following properties are defined for the MXValidator:

"schemas"
An option for registering schemas with the SAX reader.

Datatype — XMLSchemaCache.

Access — (parsing) Read-only; (not parsing) Read/Write.

"schema-declaration-handler"
An option for registering a schema-based declaration handler with the SAX reader.

Datatype — Event handler that implements the IMXSchemaDeclHandler interface.

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

putProperty Method

Applies to: MXValidator CoClass