Aspose.Tasks for C++
Aspose::Tasks::Properties::PropertyKeyedCollection< T > Class Template Referenceabstract

A base class of collection of properties. More...

#include <PropertyKeyedCollection.h>

Inherits Aspose::Tasks::Properties::PropertyCollection< T >, and System::Collections::Generic::ICollection< typename >.

Public Member Functions

System::SharedPtr< System::Collections::Generic::ICollection< System::String > > get_Names ()
 Gets the collection of all property names. More...
 
int32_t get_Count () const override
 Gets the number of properties in the collection. More...
 
bool get_IsReadOnly () const override=0
 Gets a value indicating whether this collection is read-only; otherwise, false. More...
 
idx_get (const System::String &name)
 Gets the Property associated with the specified key. More...
 
void Clear () override
 
bool Contains (const System::String &name) const
 Determines whether the Aspose::Tasks::Properties::PropertyCollection<T> contains a property with the specified name. More...
 
void Add (const T &item) override
 Creates a new custom property. More...
 

Detailed Description

template<typename T>
class Aspose::Tasks::Properties::PropertyKeyedCollection< T >

A base class of collection of properties.

Template Parameters
TThe type of property.

Member Function Documentation

◆ Add()

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

Creates a new custom property.

Parameters
itemThe property to add.

◆ Contains()

template<typename T >
bool Aspose::Tasks::Properties::PropertyKeyedCollection< T >::Contains ( const System::String &  name) const
inline

Determines whether the Aspose::Tasks::Properties::PropertyCollection<T> contains a property with the specified name.

Parameters
nameThe name of a property
Returns
true if the Aspose::Tasks::Properties::PropertyCollection<T> contains a property with the specified name; otherwise, false.

◆ get_Count()

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

Gets the number of properties in the collection.

◆ get_IsReadOnly()

template<typename T >
bool Aspose::Tasks::Properties::PropertyKeyedCollection< T >::get_IsReadOnly ( ) const
overridepure virtual

Gets a value indicating whether this collection is read-only; otherwise, false.

Implemented in Aspose::Tasks::Properties::CustomProjectPropertyCollection, and Aspose::Tasks::Properties::BuiltInProjectPropertyCollection.

◆ get_Names()

template<typename T >
System::SharedPtr<System::Collections::Generic::ICollection<System::String> > Aspose::Tasks::Properties::PropertyKeyedCollection< T >::get_Names ( )
inline

Gets the collection of all property names.

◆ idx_get()

template<typename T >
T Aspose::Tasks::Properties::PropertyKeyedCollection< T >::idx_get ( const System::String &  name)
inline

Gets the Property associated with the specified key.

Parameters
nameThe name of the Property to get.
Returns
The Property associated with the specified name.