errorParametersCount Property

 

[This sample code uses features that were first implemented in MSXML 5.0 for Microsoft Office Applications.]

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.

intParams = objXMLDOMParseError2.errorParametersCount;  

intParams = objXMLDOMParseError2.errorParametersCount  

INT intParams = objXMLDOMParseError2->errorParametersCount;  

HRESULT get_errorParametersCount (  
    INT * intParams);  

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

S_OK
The parameter has been retrieved successfully.

E_FAIL
Operation failed.

See the example for the errorParameters method.

IXMLDOMParseError2 Interface

Implemented in:

MSXML 6.0

IXMLDOMParseError2

Show: