Aspose.Tasks for C++
Aspose::Tasks::Properties::PropertyKeyedCollection< typename > 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>
class Aspose::Tasks::Properties::PropertyKeyedCollection< typename >

A base class of collection of properties.

Template Parameters
TThe type of property.

Member Function Documentation

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

Creates a new custom property.

Parameters
itemThe property to add.
template<typename >
bool Aspose::Tasks::Properties::PropertyKeyedCollection< typename >::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.
template<typename >
int32_t Aspose::Tasks::Properties::PropertyKeyedCollection< typename >::get_Count ( ) const
inlineoverride

Gets the number of properties in the collection.

template<typename >
bool Aspose::Tasks::Properties::PropertyKeyedCollection< typename >::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.

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

Gets the collection of all property names.

template<typename >
T Aspose::Tasks::Properties::PropertyKeyedCollection< typename >::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.