Freigeben über


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.

Script Syntax

intParams = objXMLDOMParseError2.errorParametersCount;  

Visual Basic Syntax

intParams = objXMLDOMParseError2.errorParametersCount  

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

Implemented in:

MSXML 6.0

See Also

IXMLDOMParseError2