maxLength Property
Returns a variant of type VT_BSTR. This variant indicates the maximum number of units in the lexical space of this type. For more information about the maxLength
facet, see Data Type Facets.
[Script]
Implementation Syntax
var varMaxLength = oISchemaType.maxLength;
Parameters
None.
Return Values
- varMaxLength
- A variant. The value of the
maxLength
facet of the restriction.
[Visual Basic]
Implementation Syntax
varMaxLength = oISchemaType.maxLength
Parameters
None.
Return Values
- varMaxLength
- A variant. The value of the
maxLength
facet of the restriction.
[C/C++]
Implementation Syntax
HRESULT get_maxLength (VARIANT* maxLength);
Parameters
- maxLength [out,retval]
- A variant. The value of the
maxLength
facet.
Return Values
- S_OK
- The value returned if successful.
- E_POINTER
- The value returned if the
maxLength
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 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