Partager via


length Property (XMLSchemaCache-IXMLSchemaCollection)

 

Returns the number of namespaces currently in the collection.

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.

Script Syntax

lValue = objXMLDOMSchemaCollection.length;  

Visual Basic Syntax

lValue = objXMLDOMSchemaCollection.length  

C/C++ Syntax

HRESULT length(long * length);  

Parameters

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

C/C++ Return Values

S_OK
The value returned if successful.

Remarks

Long integer. The property is read-only.

Versioning

Implemented in:

MSXML 3.0, MSXML 6.0

Applies to

IXMLDOMSchemaCollection-XMLSchemaCache