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

errorParametersCount Property

This read-only property returns the number of error parameters used in an error message. A zero value means that the error message has no error parameters. The index is zero-based; therefore, when the number of error parameters is non-zero, the value of this property equals the index of the last parameter, minus one.

[Script]

Script Syntax

intParams = objXMLDOMParseError2.errorParametersCount;
[Visual Basic]

Visual Basic Syntax

intParams = objXMLDOMParseError2.errorParametersCount
[C/C++]

C/C++ Syntax Using Smart Pointers

INT intParams = objXMLDOMParseError2->errorParametersCount;

C/C++ Syntax

HRESULT get_errorParametersCount (
    INT * intParams);

Parameters

intParams [out,retval]
A pointer to an integer corresponding to the number of the error parameters.

Return Values

S_OK
The parameter has been retrieved successfully.
E_FAIL
Operation failed.

Example

See the example for the errorParameters method.

Applies To

IXMLDOMParseError2 Interface

Versioning

MSXML 5.0 and later

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

IXMLDOMParseError2 Interface