Aspose::Email::PersonalInfo::EventList Class Reference

List of events for a contact More...

Inherits IList< System::SharedPtr< Aspose::Email::PersonalInfo::CustomerEvent > >.

Public Member Functions

ASPOSE_EMAIL_SHARED_API System::Nullable< System::DateTime > get_Anniversary ()
 Wedding anniversary More...
 
ASPOSE_EMAIL_SHARED_API void set_Anniversary (System::Nullable< System::DateTime > value)
 Wedding anniversary More...
 
ASPOSE_EMAIL_SHARED_API System::Nullable< System::DateTime > get_Birthday ()
 Birthday More...
 
ASPOSE_EMAIL_SHARED_API void set_Birthday (System::Nullable< System::DateTime > value)
 Birthday More...
 
ASPOSE_EMAIL_SHARED_API bool get_IsReadOnly () const
 Gets a value indicating whether the list is read-only. More...
 
ASPOSE_EMAIL_SHARED_API int32_t get_Count () const
 Gets the number of elements contained in the T:System::Collections::ICollection. More...
 
ASPOSE_EMAIL_SHARED_API void Remove (System::SharedPtr< EventCategory > cat)
 
ASPOSE_EMAIL_SHARED_API void RemoveAndInsertFirst (System::SharedPtr< CustomerEvent > evnt)
 
ASPOSE_EMAIL_SHARED_API void Add (System::SharedPtr< CustomerEvent > const &value)
 Adds an item to the list. More...
 
ASPOSE_EMAIL_SHARED_API bool Contains (System::SharedPtr< CustomerEvent > const &value) const
 Determines whether the list contains a specific value. More...
 
ASPOSE_EMAIL_SHARED_API void Clear ()
 Removes all items from the list. More...
 
ASPOSE_EMAIL_SHARED_API int32_t IndexOf (System::SharedPtr< CustomerEvent > const &value) const
 Determines the index of a specific item in the list. More...
 
ASPOSE_EMAIL_SHARED_API void Insert (int32_t index, System::SharedPtr< CustomerEvent > const &value)
 Inserts an item to the list at the specified index. More...
 
ASPOSE_EMAIL_SHARED_API bool Remove (System::SharedPtr< CustomerEvent > const &value)
 Removes the first occurrence of a specific object from the list. More...
 
ASPOSE_EMAIL_SHARED_API void RemoveAt (int32_t index)
 Removes the list item at the specified index. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< CustomerEventidx_get (int32_t index) const
 Gets the element at the specified index. More...
 
ASPOSE_EMAIL_SHARED_API void idx_set (int32_t index, System::SharedPtr< CustomerEvent > value)
 Sets the element at the specified index. More...
 
ASPOSE_EMAIL_SHARED_API void CopyTo (System::ArrayPtr< System::SharedPtr< CustomerEvent >> array, int32_t index)
 Copies the elements to an array, starting at a particular array index. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< CustomerEvent > > > GetEnumerator ()
 Returns an enumerator that iterates through a collection. More...
 
ASPOSE_EMAIL_SHARED_API EventList ()
 

Protected Member Functions

virtual ASPOSE_EMAIL_SHARED_API ~EventList ()
 

Detailed Description

List of events for a contact

Constructor & Destructor Documentation

◆ EventList()

ASPOSE_EMAIL_SHARED_API Aspose::Email::PersonalInfo::EventList::EventList ( )

◆ ~EventList()

virtual ASPOSE_EMAIL_SHARED_API Aspose::Email::PersonalInfo::EventList::~EventList ( )
protectedvirtual

Member Function Documentation

◆ Add()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::Add ( System::SharedPtr< CustomerEvent > const &  value)

Adds an item to the list.

Parameters
valueThe object to add to the list.
Returns
The position into which the new element was inserted.

◆ Clear()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::Clear ( )

Removes all items from the list.

◆ Contains()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::EventList::Contains ( System::SharedPtr< CustomerEvent > const &  value) const

Determines whether the list contains a specific value.

Parameters
valueThe object to locate in the list.
Returns
true if the object is found in the list; otherwise, false.

◆ CopyTo()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::CopyTo ( System::ArrayPtr< System::SharedPtr< CustomerEvent >>  array,
int32_t  index 
)

Copies the elements to an array, starting at a particular array index.

Parameters
arrayThe one-dimensional array that is the destination of the elements copied from collections. The array must have zero-based indexing.
indexThe zero-based index in array at which copying begins.

◆ get_Anniversary()

ASPOSE_EMAIL_SHARED_API System::Nullable<System::DateTime> Aspose::Email::PersonalInfo::EventList::get_Anniversary ( )

Wedding anniversary

◆ get_Birthday()

ASPOSE_EMAIL_SHARED_API System::Nullable<System::DateTime> Aspose::Email::PersonalInfo::EventList::get_Birthday ( )

Birthday

◆ get_Count()

ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::EventList::get_Count ( ) const

Gets the number of elements contained in the T:System::Collections::ICollection.

Returns
The number of elements contained in the T:System::Collections::ICollection.

◆ get_IsReadOnly()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::EventList::get_IsReadOnly ( ) const

Gets a value indicating whether the list is read-only.

Returns
true if the list is read-only; otherwise, false.

◆ GetEnumerator()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<CustomerEvent> > > Aspose::Email::PersonalInfo::EventList::GetEnumerator ( )

Returns an enumerator that iterates through a collection.

Returns
An T:System::Collections::IEnumerator object that can be used to iterate through the collection.

◆ idx_get()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<CustomerEvent> Aspose::Email::PersonalInfo::EventList::idx_get ( int32_t  index) const

Gets the element at the specified index.

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

◆ idx_set()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::idx_set ( int32_t  index,
System::SharedPtr< CustomerEvent value 
)

Sets the element at the specified index.

Parameters
indexThe zero-based index of the element to get or set.
valueThe element at the specified index.

◆ IndexOf()

ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::EventList::IndexOf ( System::SharedPtr< CustomerEvent > const &  value) const

Determines the index of a specific item in the list.

Parameters
valueThe T:System::Object to locate in the list.
Returns
The index of value if found in the list; otherwise, -1.

◆ Insert()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::Insert ( int32_t  index,
System::SharedPtr< CustomerEvent > const &  value 
)

Inserts an item to the list at the specified index.

Parameters
indexThe zero-based index at which value should be inserted.
valueThe T:System::Object to insert into the list.

◆ Remove() [1/2]

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::EventList::Remove ( System::SharedPtr< CustomerEvent > const &  value)

Removes the first occurrence of a specific object from the list.

Parameters
valueThe T:System::Object to remove from the list.

◆ Remove() [2/2]

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::Remove ( System::SharedPtr< EventCategory cat)

◆ RemoveAndInsertFirst()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::RemoveAndInsertFirst ( System::SharedPtr< CustomerEvent evnt)

◆ RemoveAt()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::RemoveAt ( int32_t  index)

Removes the list item at the specified index.

Parameters
indexThe zero-based index of the item to remove.

◆ set_Anniversary()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::set_Anniversary ( System::Nullable< System::DateTime >  value)

Wedding anniversary

◆ set_Birthday()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EventList::set_Birthday ( System::Nullable< System::DateTime >  value)

Birthday