Aspose.Tasks for C++
Aspose::Tasks::ReadOnlyCollectionBase< T > Class Template Reference

Represents a read-only collection of objects. More...

#include <ReadOnlyCollectionBase.h>

Inherits System::Collections::Generic::IList< typename >.

Public Member Functions

int32_t get_Count () const override
 Gets the number of objects contained in the object. More...
 
idx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, T value) override
 Returns the element at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< T > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
void Add (const T &item) override
 This is the stub implementation of ICollection's Add method, that only throws NotSupportedException More...
 
System::SharedPtr< System::Collections::Generic::List< T > > ToList ()
 Converts the collection object to a list of VbaModule objects. More...
 

Detailed Description

template<typename T>
class Aspose::Tasks::ReadOnlyCollectionBase< T >

Represents a read-only collection of objects.

Template Parameters
TType of collection items.

Member Function Documentation

◆ Add()

template<typename T >
void Aspose::Tasks::ReadOnlyCollectionBase< T >::Add ( const T &  item)
inlineoverride

This is the stub implementation of ICollection's Add method, that only throws NotSupportedException

Parameters
itemThe item to add.

◆ get_Count()

template<typename T >
int32_t Aspose::Tasks::ReadOnlyCollectionBase< T >::get_Count ( ) const
inlineoverride

Gets the number of objects contained in the object.

◆ GetEnumerator()

template<typename T >
System::SharedPtr<System::Collections::Generic::IEnumerator<T> > Aspose::Tasks::ReadOnlyCollectionBase< T >::GetEnumerator ( )
inlineoverride

Returns an enumerator for this collection.

Returns
An enumerator for this collection.

◆ idx_get()

template<typename T >
T Aspose::Tasks::ReadOnlyCollectionBase< T >::idx_get ( int32_t  index) const
inlineoverride

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
Returns
the element at the specified index.

◆ idx_set()

template<typename T >
void Aspose::Tasks::ReadOnlyCollectionBase< T >::idx_set ( int32_t  index,
value 
)
inlineoverride

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
valuethe element at the specified index.

◆ ToList()

template<typename T >
System::SharedPtr<System::Collections::Generic::List<T> > Aspose::Tasks::ReadOnlyCollectionBase< T >::ToList ( )
inline

Converts the collection object to a list of VbaModule objects.

Returns
List of objects.