length Property (XMLSchemaCache-IXMLSchemaCollection)


Returns the number of namespaces currently in the collection.

System_CAPS_ICON_note.jpg Note

The namespaces collection only includes namespaces explicitly declared as attribute values using the xmlns attribute. If a namespace is not explicitly used in an XML document when it loads into the DOM, it will not be added to the collection.

lValue = objXMLDOMSchemaCollection.length;  

lValue = objXMLDOMSchemaCollection.length  

HRESULT length(long * length);  


length[out, retval]
The number of namespaces in the collection.

C/C++ Return Values

The value returned if successful.

Long integer. The property is read-only.

Implemented in:

MSXML 3.0, MSXML 6.0