Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

length Property

Returns a variant of type VT_BSTR. This variant indicates the number of units of length. For more information about the length facet, see Data Type Facets.

[Script]

Implementation Syntax

var varLength = oISchemaType.length;

Parameters

None.

Return Values

varLength
A variant. The value of the length facet of the restriction.
[Visual Basic]

Implementation Syntax

varLength = oISchemaType.length

Parameters

None.

Return Values

varLength
A variant. The value of the length facet of the restriction.
[C/C++]

Implementation Syntax

HRESULT get_length (VARIANT* length);

Parameters

length [out,retval]
A variant. The value of the length facet.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the length parameter is NULL.
E_FAIL
The value returned if something else is wrong.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

Note   If the facet is not used, the property will return "-1".

See Also

Data Type Facets | Parts of Data Types

Applies to: ISchemaType Interface