Port CollectionICape CollectionItem Method
Gets the specific item stored within the collection, identified by its ICapeIdentification.ComponentName or 1-based index passed as an argument to the method.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Gets the number of items currently stored in the collection.
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
Object ICapeCollection.Item(
Object index
)VB
Private Function Item (
index As Object
) As Object Implements ICapeCollection.ItemParameters
- index Object
Return Value
ObjectGets the number of items currently stored in the collection.
Implements
ICapeCollectionItem(Object)Remarks
The object will be a COM Variant.
Exceptions
| ECapeUnknown | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeInvalidArgument | To be used when an invalid argument value is passed, for example, an unrecognised Compound identifier or UNDEFINED for the props argument. |
| ECapeFailedInitialisation | ECapeFailedInitialisation |
| ECapeOutOfBounds | ECapeOutOfBounds |