Represents property container.
More...
#include <PropertyContainer.h>
Inherits Aspose::Tasks::IContainer< K >.
|
template<typename TValue > |
void | CheckPropAndSet (const Key< TValue, T > &key, const TValue &val) |
| Maps the specified property to the specified value in this container. If this container doesn't contain record ProjectItem it will be added. More...
|
|
template<typename TValue > |
System::MakeConstRef_t< TValue > | CheckPropAndGet (const Key< TValue, T > &key) |
| Returns the value to which the property is mapped in this container. If this container doesn't contain record ProjectItem it will be added with default value and default value will be returned. More...
|
|
template<typename T>
class Aspose::Tasks::PropertyContainer< T >
Represents property container.
◆ CheckPropAndGet()
template<typename T >
template<typename TValue >
Returns the value to which the property is mapped in this container. If this container doesn't contain record ProjectItem it will be added with default value and default value will be returned.
- Parameters
-
key | the specified property. |
- Returns
- the value to which the property is mapped in this container or default value for property.
◆ CheckPropAndSet()
template<typename T >
template<typename TValue >
Maps the specified property to the specified value in this container. If this container doesn't contain record ProjectItem it will be added.
- Parameters
-
key | the specified property. |
val | the value. |