Represents a phone number. More...
Inherits IComparable< System::SharedPtr< PhoneNumber > >, and IEquatable< System::SharedPtr< PhoneNumber > >.
Public Member Functions | |
| bool | get_Prefered () const |
| Gets a value which defines whether phone number is preferred. More... | |
| void | set_Prefered (bool value) |
| Sets a value which defines whether phone number is preferred. More... | |
| System::SharedPtr< PhoneNumberCategory > | get_Category () const |
| Gets an object category More... | |
| void | set_Category (System::SharedPtr< PhoneNumberCategory > value) |
| Sets an object category More... | |
| System::String | get_Number () const |
| Gets a phone number More... | |
| void | set_Number (System::String value) |
| Sets a phone number More... | |
| int32_t | GetHashCode () const override |
| GetHashCode returns a hash function for this object. More... | |
| virtual int32_t | GetHashCode (System::SharedPtr< PhoneNumber > obj) |
| GetHashCode returns a hash function for specified object. More... | |
| bool | Equals (System::SharedPtr< PhoneNumber > obj) override |
| Determines whether the specified Object is equal to the current 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< PhoneNumber > x, System::SharedPtr< PhoneNumber > y) |
| Determines whether the specified object instances are considered equal. More... | |
| int32_t | CompareTo (System::SharedPtr< PhoneNumber > 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... | |
| PhoneNumber () | |
| System::String | ToString () const override |
| Returns a string that represents the current object. More... | |
Friends | |
| bool | operator== (System::SharedPtr< PhoneNumber > a, System::SharedPtr< PhoneNumber > b) |
| Determines whether the specified objects are equal. More... | |
| bool | operator!= (System::SharedPtr< PhoneNumber > a, System::SharedPtr< PhoneNumber > b) |
| Determines whether the specified objects are not equal. More... | |
Represents a phone number.
| Aspose::Email::PersonalInfo::PhoneNumber::PhoneNumber | ( | ) |
|
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.
| obj | An object to compare with this instance, or null. |
|
override |
Determines whether the specified Object is equal to the current Object.
| obj | The Object to compare with the current Object. |
| bool Aspose::Email::PersonalInfo::PhoneNumber::Equals | ( | System::SharedPtr< PhoneNumber > | x, |
| System::SharedPtr< PhoneNumber > | y | ||
| ) |
Determines whether the specified object instances are considered equal.
| x | The first object to compare. |
| y | The second object to compare. |
|
override |
Determines whether the specified Object is equal to the current Object.
| obj | The Object to compare with the current Object. |
| System::SharedPtr<PhoneNumberCategory> Aspose::Email::PersonalInfo::PhoneNumber::get_Category | ( | ) | const |
Gets an object category
| System::String Aspose::Email::PersonalInfo::PhoneNumber::get_Number | ( | ) | const |
Gets a phone number
| bool Aspose::Email::PersonalInfo::PhoneNumber::get_Prefered | ( | ) | const |
Gets a value which defines whether phone number is preferred.
|
override |
GetHashCode returns a hash function for this object.
|
virtual |
GetHashCode returns a hash function for specified object.
| obj | The Object for which a hash code is to be returned. |
| void Aspose::Email::PersonalInfo::PhoneNumber::set_Category | ( | System::SharedPtr< PhoneNumberCategory > | value | ) |
Sets an object category
| void Aspose::Email::PersonalInfo::PhoneNumber::set_Number | ( | System::String | value | ) |
Sets a phone number
| void Aspose::Email::PersonalInfo::PhoneNumber::set_Prefered | ( | bool | value | ) |
Sets a value which defines whether phone number is preferred.
|
override |
Returns a string that represents the current object.
|
friend |
Determines whether the specified objects are not equal.
| a | First object to compare |
| b | Second object to compare |
|
friend |
Determines whether the specified objects are equal.
| a | First object to compare |
| b | Second object to compare |