Aspose.Tasks for C++
Aspose::Tasks::Properties::CustomProjectPropertyCollection Class Referencefinal

Represents a collection of custom project properties. More...

#include <CustomProjectPropertyCollection.h>

Inherits Aspose::Tasks::Properties::PropertyKeyedCollection< System::SharedPtr< Aspose::Tasks::Properties::CustomProjectProperty > >.

Public Member Functions

bool get_IsReadOnly () const override
 Gets a value indicating whether this collection is read-only; otherwise, false. More...
 
 CustomProjectPropertyCollection ()
 Initializes a new instance of the CustomProjectPropertyCollection class. More...
 
bool Remove (const System::String &name)
 Removes a property with the specified name from the collection. More...
 
System::SharedPtr< CustomProjectPropertyAdd (const System::String &name, const System::String &value)
 Creates a new custom property. More...
 
System::SharedPtr< CustomProjectPropertyAdd (const System::String &name, bool value)
 Creates a new custom property. More...
 
System::SharedPtr< CustomProjectPropertyAdd (const System::String &name, double value)
 Creates a new custom property. More...
 
System::SharedPtr< CustomProjectPropertyAdd (const System::String &name, System::DateTime value)
 Creates a new custom property. More...
 
- Public Member Functions inherited from Aspose::Tasks::Properties::PropertyKeyedCollection< System::SharedPtr< Aspose::Tasks::Properties::CustomProjectProperty > >
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...
 
System::SharedPtr< Aspose::Tasks::Properties::CustomProjectPropertyidx_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 System::SharedPtr< Aspose::Tasks::Properties::CustomProjectProperty > &item) override
 Creates a new custom property. More...
 

Detailed Description

Represents a collection of custom project properties.

Constructor & Destructor Documentation

◆ CustomProjectPropertyCollection()

Aspose::Tasks::Properties::CustomProjectPropertyCollection::CustomProjectPropertyCollection ( )

Initializes a new instance of the CustomProjectPropertyCollection class.

Member Function Documentation

◆ Add() [1/4]

System::SharedPtr<CustomProjectProperty> Aspose::Tasks::Properties::CustomProjectPropertyCollection::Add ( const System::String &  name,
bool  value 
)

Creates a new custom property.

Parameters
nameThe name of the property.
valueThe newly created property object value.
Returns
The newly created property object.

◆ Add() [2/4]

System::SharedPtr<CustomProjectProperty> Aspose::Tasks::Properties::CustomProjectPropertyCollection::Add ( const System::String &  name,
const System::String &  value 
)

Creates a new custom property.

Parameters
nameThe name of the property.
valueThe newly created property object value.
Returns
The newly created property object.

◆ Add() [3/4]

System::SharedPtr<CustomProjectProperty> Aspose::Tasks::Properties::CustomProjectPropertyCollection::Add ( const System::String &  name,
double  value 
)

Creates a new custom property.

Parameters
nameThe name of the property.
valueThe newly created property object value.
Returns
The newly created property object.

◆ Add() [4/4]

System::SharedPtr<CustomProjectProperty> Aspose::Tasks::Properties::CustomProjectPropertyCollection::Add ( const System::String &  name,
System::DateTime  value 
)

Creates a new custom property.

Parameters
nameThe name of the property.
valueThe newly created property object value.
Returns
The newly created property object.

◆ get_IsReadOnly()

bool Aspose::Tasks::Properties::CustomProjectPropertyCollection::get_IsReadOnly ( ) const
overridevirtual

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

Implements Aspose::Tasks::Properties::PropertyKeyedCollection< System::SharedPtr< Aspose::Tasks::Properties::CustomProjectProperty > >.

◆ Remove()

bool Aspose::Tasks::Properties::CustomProjectPropertyCollection::Remove ( const System::String &  name)

Removes a property with the specified name from the collection.

Parameters
nameThe case-insensitive name of the property.
Returns
True if the element is successfully found and removed; otherwise, false.