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

List of email addresses for a contact More...

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

Public Member Functions

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

Protected Member Functions

virtual ~EmailAddressList ()
 

Detailed Description

List of email addresses for a contact

Constructor & Destructor Documentation

◆ EmailAddressList()

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

◆ ~EmailAddressList()

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

Member Function Documentation

◆ Add()

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

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

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

Removes all items from the list.

◆ Contains()

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

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

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

Default email3 address.

◆ get_Email1()

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

Default email1 address.

◆ get_Email2()

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

Default email2 address.

◆ get_Email3()

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

Default email3 address.

◆ get_Home()

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

Default home email address.

◆ get_IsReadOnly()

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

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

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

◆ get_SyncRoot()

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

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

Default work email address.

◆ GetEnumerator()

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

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

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]

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

◆ idx_set() [2/2]

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

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

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

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

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

◆ RemoveAt()

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

Removes the list item at the specified index.

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

◆ set_Email()

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

Default email3 address.

◆ set_Email1()

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

Default email1 address.

◆ set_Email2()

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

Default email2 address.

◆ set_Email3()

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

Default email3 address.

◆ set_Home()

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

Default home email address.

◆ set_Work()

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

Default work email address.