[Enterprise Extensions only]

TypeCode::length

Overview Returns the bound of a string or sequence, or the number of elements in an array.
Original class CORBA::TypeCode
Exceptions CORBA::SystemException
CORBA::TypeCode::BadKind


Intended Usage

The length method can be invoked on string, sequence, and array TypeCodes. For strings and sequences, the length method returns a bound, with zero indicating an unbounded string or sequence. For arrays, the length method returns the number of elements in an array.

IDL Syntax

  CORBA::ULong length() const;

Input parameters

None.

Return values

CORBA::ULong
The bound of the string or sequence, the number of elements in the array.