Share via


item Property

 

Returns a prefix from the indicated index in the prefixes collection. The index begins at 0.

Script Syntax

var strValue = objNSPrefixes.item(intIndex);  

Parameters

intIndex
A long integer. The index of the item within the prefixes collection. The index starts at 0.

Visual Basic Syntax

strValue = objNSPrefixes.item
(intIndex)  

Parameters

intIndex
A long integer. The index of the item within the prefixes collection. The index starts at 0.

C/C++ Syntax

HRESULT get_item(  
    long index,  
    BSTR* prefix);  

Parameters

index[in]
A long integer. The index of the item within the prefixes collection. The index starts at 0.

prefix[out,retval]
The return value of the prefix.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the prefix value is NULL.

E_FAIL
The value returned if the index value is out of bounds.

Versioning

Implemented in: MSXML 6.0.

Applies to

IMXNamespacePrefixes

See Also

length Property1