minLength Property

[This feature was only implemented for MSXML 6.0.]

Returns a variant of type VT_BSTR. This variant indicates the minimum number of units in the lexical space of this type. For more information about the minLength facet, see Data Type Facets.

var varMinLength = oISchemaType.minLength;

Parameters

None.

Return Values

varMinLength

A variant. The value of the minLength facet of the restriction.

Example

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

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


varMinLength = oISchemaType.minLength

Parameters

None.

Return Values

varMinLength

A variant. The value of the minLength facet of the restriction.

HRESULT get_minLength (VARIANT* minLength);

Parameters

minLength[out,retval]

A variant. The value of the minLength facet.

Return Values

S_OK

The value returned if successful.

E_POINTER

The value returned if the minLength parameter is NULL.

E_FAIL

The value returned if something else is wrong.

NoteNote

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

Implemented in: MSXML 6.0

Show:
© 2014 Microsoft