Aspose::Email::PersonalInfo::EmailAddressList Class Reference

List of email addresses for a contact More...

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

Public Member Functions

ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressget_Work ()
 Default work email address. More...
 
ASPOSE_EMAIL_SHARED_API void set_Work (System::SharedPtr< EmailAddress > value)
 Default work email address. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressget_Home ()
 Default home email address. More...
 
ASPOSE_EMAIL_SHARED_API void set_Home (System::SharedPtr< EmailAddress > value)
 Default home email address. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressget_Email1 ()
 Default email1 address. More...
 
ASPOSE_EMAIL_SHARED_API void set_Email1 (System::SharedPtr< EmailAddress > value)
 Default email1 address. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressget_Email2 ()
 Default email2 address. More...
 
ASPOSE_EMAIL_SHARED_API void set_Email2 (System::SharedPtr< EmailAddress > value)
 Default email2 address. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressget_Email3 ()
 Default email3 address. More...
 
ASPOSE_EMAIL_SHARED_API void set_Email3 (System::SharedPtr< EmailAddress > value)
 Default email3 address. 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 System::SharedPtr< System::Object > get_SyncRoot () const
 Gets an object that can be used to synchronize access to the T:System::Collections::ICollection. More...
 
ASPOSE_EMAIL_SHARED_API EmailAddressList ()
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressidx_get (System::SharedPtr< EmailAddressCategory > category)
 Default email address for specified category. More...
 
ASPOSE_EMAIL_SHARED_API void idx_set (System::SharedPtr< EmailAddressCategory > category, System::SharedPtr< EmailAddress > value)
 Default email address for specified category. More...
 
ASPOSE_EMAIL_SHARED_API void Add (System::SharedPtr< EmailAddress > const &value)
 Adds an item to the list. More...
 
ASPOSE_EMAIL_SHARED_API void Insert (int32_t index, System::SharedPtr< EmailAddress > const &value)
 Inserts an item to the list at the specified index. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmailAddressidx_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< EmailAddress > value)
 Sets the element at the specified index. More...
 
ASPOSE_EMAIL_SHARED_API bool Contains (System::SharedPtr< EmailAddress > 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< EmailAddress > const &value) const
 Determines the index of a specific item in the list. More...
 
ASPOSE_EMAIL_SHARED_API bool Remove (System::SharedPtr< EmailAddress > 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 void CopyTo (System::ArrayPtr< System::SharedPtr< EmailAddress >> 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< EmailAddress > > > GetEnumerator ()
 Returns an enumerator that iterates through a collection. More...
 

Protected Member Functions

virtual ASPOSE_EMAIL_SHARED_API ~EmailAddressList ()
 

Detailed Description

List of email addresses for a contact

Constructor & Destructor Documentation

◆ EmailAddressList()

ASPOSE_EMAIL_SHARED_API Aspose::Email::PersonalInfo::EmailAddressList::EmailAddressList ( )

◆ ~EmailAddressList()

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

Member Function Documentation

◆ Add()

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

Adds an item to the list.

Parameters
valueThe T:System::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::EmailAddressList::Clear ( )

Removes all items from the list.

◆ Contains()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::EmailAddressList::Contains ( System::SharedPtr< EmailAddress > 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::EmailAddressList::CopyTo ( System::ArrayPtr< System::SharedPtr< EmailAddress >>  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_Count()

ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::EmailAddressList::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_Email1()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::get_Email1 ( )

Default email1 address.

◆ get_Email2()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::get_Email2 ( )

Default email2 address.

◆ get_Email3()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::get_Email3 ( )

Default email3 address.

◆ get_Home()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::get_Home ( )

Default home email address.

◆ get_IsReadOnly()

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

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

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

◆ get_SyncRoot()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<System::Object> Aspose::Email::PersonalInfo::EmailAddressList::get_SyncRoot ( ) const

Gets an object that can be used to synchronize access to the T:System::Collections::ICollection.

Returns
An object that can be used to synchronize access to the T:System::Collections::ICollection.

◆ get_Work()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::get_Work ( )

Default work email address.

◆ GetEnumerator()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<EmailAddress> > > Aspose::Email::PersonalInfo::EmailAddressList::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() [1/2]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::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_get() [2/2]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<EmailAddress> Aspose::Email::PersonalInfo::EmailAddressList::idx_get ( System::SharedPtr< EmailAddressCategory category)

Default email address for specified category.

Parameters
categoryCategory for email address
Returns
default email address for specified category.

◆ idx_set() [1/2]

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::idx_set ( int32_t  index,
System::SharedPtr< EmailAddress 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.

◆ idx_set() [2/2]

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::idx_set ( System::SharedPtr< EmailAddressCategory category,
System::SharedPtr< EmailAddress value 
)

Default email address for specified category.

Parameters
categoryCategory for email address
valuedefault email address for specified category.

◆ IndexOf()

ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::EmailAddressList::IndexOf ( System::SharedPtr< EmailAddress > 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::EmailAddressList::Insert ( int32_t  index,
System::SharedPtr< EmailAddress > 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()

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

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

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

◆ RemoveAt()

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

Removes the list item at the specified index.

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

◆ set_Email1()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::set_Email1 ( System::SharedPtr< EmailAddress value)

Default email1 address.

◆ set_Email2()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::set_Email2 ( System::SharedPtr< EmailAddress value)

Default email2 address.

◆ set_Email3()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::set_Email3 ( System::SharedPtr< EmailAddress value)

Default email3 address.

◆ set_Home()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::set_Home ( System::SharedPtr< EmailAddress value)

Default home email address.

◆ set_Work()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::EmailAddressList::set_Work ( System::SharedPtr< EmailAddress value)

Default work email address.