Aspose::Email::PersonalInfo::PostalAddress Class Reference

Represents a postal address. More...

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

Public Member Functions

bool get_Prefered () const
 Gets a value which defines whether postal address is preferred. More...
 
void set_Prefered (bool value)
 Sets a value which defines whether postal address is preferred. More...
 
System::SharedPtr< PostalAddressCategoryget_Category () const
 Gets an object category More...
 
void set_Category (System::SharedPtr< PostalAddressCategory > value)
 Sets an object category More...
 
bool get_IsMailingAddress () const
 Gets a value which defines whether address may be used for mailing. More...
 
void set_IsMailingAddress (bool value)
 Sets a value which defines whether address may be used for mailing. More...
 
System::String get_Street () const
 Gets a street More...
 
void set_Street (System::String value)
 Sets a street More...
 
System::String get_City () const
 Gets a city More...
 
void set_City (System::String value)
 Sets a city More...
 
System::String get_Address () const
 Gets an address More...
 
void set_Address (System::String value)
 Sets an address More...
 
System::String get_CountryCode () const
 Gets a country code More...
 
void set_CountryCode (System::String value)
 Sets a country code More...
 
System::String get_PostOfficeBox () const
 Gets a post Office box More...
 
void set_PostOfficeBox (System::String value)
 Sets a post Office box More...
 
System::String get_Country () const
 Gets a country More...
 
void set_Country (System::String value)
 Sets a country More...
 
System::String get_PostalCode () const
 Gets a post code More...
 
void set_PostalCode (System::String value)
 Sets a post code More...
 
System::String get_StateOrProvince () const
 Gets a region More...
 
void set_StateOrProvince (System::String value)
 Sets a region More...
 
virtual int32_t GetHashCode (System::SharedPtr< PostalAddress > obj)
 GetHashCode returns a hash function for specified object. More...
 
bool Equals (System::SharedPtr< PostalAddress > obj) override
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified Object is equal to the current Object. More...
 
bool Equals (System::SharedPtr< PostalAddress > x, System::SharedPtr< PostalAddress > y)
 Determines whether the specified object instances are considered equal. More...
 
int32_t CompareTo (System::SharedPtr< PostalAddress > 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...
 
 PostalAddress ()
 
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...
 

Friends

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

Detailed Description

Represents a postal address.

Constructor & Destructor Documentation

◆ PostalAddress()

Aspose::Email::PersonalInfo::PostalAddress::PostalAddress ( )

Member Function Documentation

◆ CompareTo()

int32_t Aspose::Email::PersonalInfo::PostalAddress::CompareTo ( System::SharedPtr< PostalAddress 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::PostalAddress::Equals ( System::SharedPtr< PostalAddress obj)
override

◆ Equals() [2/3]

bool Aspose::Email::PersonalInfo::PostalAddress::Equals ( System::SharedPtr< PostalAddress x,
System::SharedPtr< PostalAddress 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::PostalAddress::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_Address()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_Address ( ) const

Gets an address

◆ get_Category()

System::SharedPtr<PostalAddressCategory> Aspose::Email::PersonalInfo::PostalAddress::get_Category ( ) const

Gets an object category

◆ get_City()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_City ( ) const

Gets a city

◆ get_Country()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_Country ( ) const

Gets a country

◆ get_CountryCode()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_CountryCode ( ) const

Gets a country code

◆ get_IsMailingAddress()

bool Aspose::Email::PersonalInfo::PostalAddress::get_IsMailingAddress ( ) const

Gets a value which defines whether address may be used for mailing.

◆ get_PostalCode()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_PostalCode ( ) const

Gets a post code

◆ get_PostOfficeBox()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_PostOfficeBox ( ) const

Gets a post Office box

◆ get_Prefered()

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

Gets a value which defines whether postal address is preferred.

◆ get_StateOrProvince()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_StateOrProvince ( ) const

Gets a region

◆ get_Street()

System::String Aspose::Email::PersonalInfo::PostalAddress::get_Street ( ) const

Gets a street

◆ GetHashCode() [1/2]

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

GetHashCode returns a hash function for this object.

Returns
Returns a hash function for this object.

◆ GetHashCode() [2/2]

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

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

void Aspose::Email::PersonalInfo::PostalAddress::set_Address ( System::String  value)

Sets an address

◆ set_Category()

void Aspose::Email::PersonalInfo::PostalAddress::set_Category ( System::SharedPtr< PostalAddressCategory value)

Sets an object category

◆ set_City()

void Aspose::Email::PersonalInfo::PostalAddress::set_City ( System::String  value)

Sets a city

◆ set_Country()

void Aspose::Email::PersonalInfo::PostalAddress::set_Country ( System::String  value)

Sets a country

◆ set_CountryCode()

void Aspose::Email::PersonalInfo::PostalAddress::set_CountryCode ( System::String  value)

Sets a country code

◆ set_IsMailingAddress()

void Aspose::Email::PersonalInfo::PostalAddress::set_IsMailingAddress ( bool  value)

Sets a value which defines whether address may be used for mailing.

◆ set_PostalCode()

void Aspose::Email::PersonalInfo::PostalAddress::set_PostalCode ( System::String  value)

Sets a post code

◆ set_PostOfficeBox()

void Aspose::Email::PersonalInfo::PostalAddress::set_PostOfficeBox ( System::String  value)

Sets a post Office box

◆ set_Prefered()

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

Sets a value which defines whether postal address is preferred.

◆ set_StateOrProvince()

void Aspose::Email::PersonalInfo::PostalAddress::set_StateOrProvince ( System::String  value)

Sets a region

◆ set_Street()

void Aspose::Email::PersonalInfo::PostalAddress::set_Street ( System::String  value)

Sets a street

◆ ToString()

System::String Aspose::Email::PersonalInfo::PostalAddress::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< PostalAddress a,
System::SharedPtr< PostalAddress b 
)
friend

◆ operator==

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