Aspose::Email::PersonalInfo::AssociatedPerson Class Reference

Describes organization which is associated with a person. More...

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

Public Member Functions

bool get_Prefered () const
 Gets a value which defines whether object is preferred. More...
 
void set_Prefered (bool value)
 Sets a value which defines whether object is preferred. More...
 
System::SharedPtr< AssociatedPersonCategoryget_Category () const
 Gets an object category More...
 
void set_Category (System::SharedPtr< AssociatedPersonCategory > value)
 Sets an object category More...
 
System::String get_Name () const
 Gets a name of a person More...
 
void set_Name (System::String value)
 Sets a name of a person More...
 
int32_t GetHashCode () const override
 GetHashCode returns a hash function for this object. More...
 
virtual int32_t GetHashCode (System::SharedPtr< AssociatedPerson > 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< AssociatedPerson > obj) override
 Determines whether the specified Object is equal to the current Object. More...
 
bool Equals (System::SharedPtr< AssociatedPerson > x, System::SharedPtr< AssociatedPerson > y)
 Determines whether the specified object instances are considered equal. More...
 
int32_t CompareTo (System::SharedPtr< AssociatedPerson > 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...
 
 AssociatedPerson ()
 
System::String ToString () const override
 Returns a string that represents the current object. More...
 

Friends

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

Detailed Description

Describes organization which is associated with a person.

Constructor & Destructor Documentation

◆ AssociatedPerson()

Aspose::Email::PersonalInfo::AssociatedPerson::AssociatedPerson ( )

Member Function Documentation

◆ CompareTo()

int32_t Aspose::Email::PersonalInfo::AssociatedPerson::CompareTo ( System::SharedPtr< AssociatedPerson 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::AssociatedPerson::Equals ( System::SharedPtr< AssociatedPerson 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::AssociatedPerson::Equals ( System::SharedPtr< AssociatedPerson x,
System::SharedPtr< AssociatedPerson 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::AssociatedPerson::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<AssociatedPersonCategory> Aspose::Email::PersonalInfo::AssociatedPerson::get_Category ( ) const

Gets an object category

◆ get_Name()

System::String Aspose::Email::PersonalInfo::AssociatedPerson::get_Name ( ) const

Gets a name of a person

◆ get_Prefered()

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

Gets a value which defines whether object is preferred.

◆ GetHashCode() [1/2]

int32_t Aspose::Email::PersonalInfo::AssociatedPerson::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::AssociatedPerson::GetHashCode ( System::SharedPtr< AssociatedPerson 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_Category()

void Aspose::Email::PersonalInfo::AssociatedPerson::set_Category ( System::SharedPtr< AssociatedPersonCategory value)

Sets an object category

◆ set_Name()

void Aspose::Email::PersonalInfo::AssociatedPerson::set_Name ( System::String  value)

Sets a name of a person

◆ set_Prefered()

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

Sets a value which defines whether object is preferred.

◆ ToString()

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

◆ operator==

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