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

List of events for a contact More...

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

Public Member Functions

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

Protected Member Functions

virtual ~EventList ()
 

Detailed Description

List of events for a contact

Constructor & Destructor Documentation

◆ EventList()

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

◆ ~EventList()

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

Member Function Documentation

◆ Add()

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

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()

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

Removes all items from the list.

◆ Contains()

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

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()

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

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()

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

Wedding anniversary

◆ get_Birthday()

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

Birthday

◆ get_Count()

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

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()

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

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

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

◆ GetEnumerator()

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

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()

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

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()

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

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()

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

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()

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

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]

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

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

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

◆ Remove() [2/2]

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

◆ RemoveAndInsertFirst()

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

◆ RemoveAt()

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

Removes the list item at the specified index.

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

◆ set_Anniversary()

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

Wedding anniversary

◆ set_Birthday()

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

Birthday