length Property (ISchemaType)

 

[This feature was only implemented for MSXML 6.0.]

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.

JScript Syntax

var varLength = oISchemaType.length;  

Parameters

None.

Return Values

varLength
A variant. The value of the length facet of the restriction.

Visual Basic Syntax

varLength = oISchemaType.length  

Parameters

None.

Return Values

varLength
A variant. The value of the length facet of the restriction.

Example

The following snippet is taken from the Walk the SOM sample application. In this snippet, the length property is retrieved from the ISchemaType object.

If oType.length > -1 Then
    res = res + printTab(t+1) + "<xsd:length value='" & oType.length & "'/>" + vbNewLine
End If

C/C++ 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.

Note

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

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaType Interface

See Also

Data Type Facets
Parts of Data Types