Aspose::Email::PersonalInfo::EmailAddress Class Reference

Represents an email address More...

Inherits Aspose::Email::MailAddress, IComparable< System::SharedPtr< Aspose::Email::PersonalInfo::EmailAddress > >, and IEquatable< System::SharedPtr< Aspose::Email::PersonalInfo::EmailAddress > >.

Public Member Functions

bool get_Prefered () const
 Gets a value which defines whether email address is preferred. More...
 
void set_Prefered (bool value)
 Sets a value which defines whether email address is preferred. More...
 
System::SharedPtr< EmailAddressCategoryget_Category () const
 Gets an object category More...
 
void set_Category (System::SharedPtr< EmailAddressCategory > value)
 Sets an object category More...
 
System::String get_RoutingType () const
 Gets a routing type for an email More...
 
void set_RoutingType (System::String value)
 Sets a routing type for an email More...
 
 EmailAddress ()
 Initializes a new instance of the EmailAddress class. More...
 
 EmailAddress (System::String address)
 Initializes a new instance of the EmailAddress class. More...
 
 EmailAddress (System::String address, System::String displayName)
 Initializes a new instance of the EmailAddress class. More...
 
int32_t GetHashCode (System::SharedPtr< EmailAddress > obj)
 GetHashCode returns a hash function for specified object. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified Object is equal to the current Object. More...
 
bool Equals (System::SharedPtr< EmailAddress > obj) override
 Determines whether the specified Object is equal to the current Object. More...
 
bool Equals (System::SharedPtr< EmailAddress > x, System::SharedPtr< EmailAddress > y)
 Determines whether the specified object instances are considered equal. More...
 
int32_t CompareTo (System::SharedPtr< EmailAddress > obj) override
 Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. More...
 
System::String ToString () const override
 Returns a string that represents the current object. More...
 
int32_t GetHashCode () const override
 GetHashCode returns a hash function for this object. More...
 
void SetTemplateWeakPtr (uint32_t argument) override
 
- Public Member Functions inherited from Aspose::Email::MailAddress
System::String get_DisplayName () override
 Gets a display name. More...
 
void set_DisplayName (System::String value) override
 Sets a display name. More...
 
System::String get_User () const
 Gets the username. More...
 
System::String get_Host () const
 Gets the host portion of the address. More...
 
System::String get_Address () override
 Gets the e-mail address. More...
 
void set_Address (System::String value) override
 Sets the e-mail address. More...
 
System::String get_OriginalAddressString ()
 Gets the original e-mail address string. More...
 
void set_OriginalAddressString (System::String value)
 Sets the original e-mail address string. More...
 
int32_t get_Count ()
 Contains count of mail addresses. More...
 
System::SharedPtr< System::Text::Encoding > get_DisplayNameEncoding () const
 Gets the display name encoding. More...
 
System::String get_SmtpAddress ()
 
Aspose::Email::ParticipationStatus get_ParticipationStatus ()
 Gets the participation status for the calendar user. More...
 
void set_ParticipationStatus (Aspose::Email::ParticipationStatus value)
 Sets the participation status for the calendar user. More...
 
System::SharedPtr< Calendar::Model::ParameterCollection > get_Parameters () const
 
System::SharedPtr< ObjectIdentifierget_Id () const
 Gets object identification information More...
 
bool get_DisplayedEmailInOutlook () const
 Defines whether need rendered Email address for particular message if it converted from MapiMessage. More...
 
void set_DisplayedEmailInOutlook (bool value)
 Defines whether need rendered Email address for particular message if it converted from MapiMessage. More...
 
 MailAddress (System::String address, bool ignoreSmtpCheck)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress (System::String address, System::String displayName, bool ignoreSmtpCheck)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress (System::String address, System::String displayName, System::SharedPtr< System::Text::Encoding > displayNameEncoding)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress (System::String address, System::String displayName, System::SharedPtr< System::Text::Encoding > displayNameEncoding, bool ignoreSmtpCheck)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress (System::String address)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress (System::String address, System::String displayName)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress (System::String address, System::String encodedDisplayName, int32_t bogusParam)
 Initializes a new instance of the MailAddress class. More...
 
 MailAddress ()
 Initializes a new instance of the MailAddress class. More...
 
System::SharedPtr< MailAddressidx_get (int32_t i)
 Gets the element at the specified index. More...
 
System::String ToString (System::String displayNameQuote)
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified System::Object is equal to this instance. More...
 
int32_t GetHashCode () const override
 Returns a hash code for this instance. More...
 
System::SharedPtr< MailAddressClone ()
 
void CopyInplace (System::SharedPtr< MailAddress > address)
 
void SetEncoding (System::SharedPtr< System::Text::Encoding > nameEncoding)
 Sets encoding for dysplay name More...
 
System::String ToEncodedString ()
 
System::String ToString () const override
 Returns a System::String that represents this instance. More...
 

Friends

bool operator== (System::SharedPtr< EmailAddress > a, System::SharedPtr< EmailAddress > b)
 
bool operator!= (System::SharedPtr< EmailAddress > a, System::SharedPtr< EmailAddress > b)
 

Additional Inherited Members

- Static Public Member Functions inherited from Aspose::Email::MailAddress
static System::SharedPtr< MailAddressto_MailAddress (System::String address)
 
static System::SharedPtr< MailAddressto_MailAddress (System::SharedPtr< MailAddressCollection > addresses)
 
static System::SharedPtr< MailAddressSafeCreateMailAddress (System::String address, System::String displayName, bool ignoreSmtpCheck)
 
static System::SharedPtr< MailAddressSafeCreateMailAddressWithEncoding (System::String address)
 
static System::SharedPtr< MailAddressSafeCreateMailAddressWithEncoding (System::String address, System::String displayName)
 
static System::SharedPtr< MailAddressSafeCreateMailAddressWithEncoding (System::String address, System::String displayName, System::SharedPtr< System::Text::Encoding > displayNameEncoding)
 
- Protected Member Functions inherited from Aspose::Email::MailAddress
virtual ~MailAddress ()
 

Detailed Description

Represents an email address

Constructor & Destructor Documentation

◆ EmailAddress() [1/3]

Aspose::Email::PersonalInfo::EmailAddress::EmailAddress ( )

Initializes a new instance of the EmailAddress class.

◆ EmailAddress() [2/3]

Aspose::Email::PersonalInfo::EmailAddress::EmailAddress ( System::String  address)

Initializes a new instance of the EmailAddress class.

Parameters
addressThe mail address.

◆ EmailAddress() [3/3]

Aspose::Email::PersonalInfo::EmailAddress::EmailAddress ( System::String  address,
System::String  displayName 
)

Initializes a new instance of the EmailAddress class.

Parameters
addressThe mail address.
displayNameThe display name.

Member Function Documentation

◆ CompareTo()

int32_t Aspose::Email::PersonalInfo::EmailAddress::CompareTo ( System::SharedPtr< EmailAddress obj)
override

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Parameters
objAn object to compare with this instance, or null.
Returns
This method returns: a value less than 0 if this is less than value 0 if this is equal to value a value greater than 0 if this is greater than value

◆ Equals() [1/3]

bool Aspose::Email::PersonalInfo::EmailAddress::Equals ( System::SharedPtr< EmailAddress obj)
override

Determines whether the specified Object is equal to the current Object.

Parameters
objThe Object to compare with the current Object.
Returns
Returns a boolean indicating if the passed in object obj is Equal to this.

◆ Equals() [2/3]

bool Aspose::Email::PersonalInfo::EmailAddress::Equals ( System::SharedPtr< EmailAddress x,
System::SharedPtr< EmailAddress y 
)

Determines whether the specified object instances are considered equal.

Parameters
xThe first object to compare.
yThe second object to compare.
Returns
true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

◆ Equals() [3/3]

bool Aspose::Email::PersonalInfo::EmailAddress::Equals ( System::SharedPtr< System::Object >  obj)
override

Determines whether the specified Object is equal to the current Object.

Parameters
objThe Object to compare with the current Object.
Returns
Returns a boolean indicating if the passed in object obj is Equal to this.

◆ get_Category()

System::SharedPtr<EmailAddressCategory> Aspose::Email::PersonalInfo::EmailAddress::get_Category ( ) const

Gets an object category

◆ get_Prefered()

bool Aspose::Email::PersonalInfo::EmailAddress::get_Prefered ( ) const

Gets a value which defines whether email address is preferred.

◆ get_RoutingType()

System::String Aspose::Email::PersonalInfo::EmailAddress::get_RoutingType ( ) const

Gets a routing type for an email

◆ GetHashCode() [1/2]

int32_t Aspose::Email::PersonalInfo::EmailAddress::GetHashCode ( ) const
override

GetHashCode returns a hash function for this object.

Returns
Returns a hash function for this object.

◆ GetHashCode() [2/2]

int32_t Aspose::Email::PersonalInfo::EmailAddress::GetHashCode ( System::SharedPtr< EmailAddress obj)

GetHashCode returns a hash function for specified object.

Parameters
objThe Object for which a hash code is to be returned.
Returns
Returns a hash function for specified object.

◆ set_Category()

void Aspose::Email::PersonalInfo::EmailAddress::set_Category ( System::SharedPtr< EmailAddressCategory value)

Sets an object category

◆ set_Prefered()

void Aspose::Email::PersonalInfo::EmailAddress::set_Prefered ( bool  value)

Sets a value which defines whether email address is preferred.

◆ set_RoutingType()

void Aspose::Email::PersonalInfo::EmailAddress::set_RoutingType ( System::String  value)

Sets a routing type for an email

◆ SetTemplateWeakPtr()

void Aspose::Email::PersonalInfo::EmailAddress::SetTemplateWeakPtr ( uint32_t  argument)
override

◆ ToString()

System::String Aspose::Email::PersonalInfo::EmailAddress::ToString ( ) const
override

Returns a string that represents the current object.

Returns
Returns a string that represents the current object.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( System::SharedPtr< EmailAddress a,
System::SharedPtr< EmailAddress b 
)
friend

◆ operator==

bool operator== ( System::SharedPtr< EmailAddress a,
System::SharedPtr< EmailAddress b 
)
friend