Aspose::Email::PersonalInfo::Url Class Reference

Objects represents a URL and its category. More...

Inherits IComparable< System::SharedPtr< Aspose::Email::PersonalInfo::Url > >.

Public Member Functions

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

Friends

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

Detailed Description

Objects represents a URL and its category.

Constructor & Destructor Documentation

◆ Url()

ASPOSE_EMAIL_SHARED_API Aspose::Email::PersonalInfo::Url::Url ( )

Member Function Documentation

◆ CompareTo()

virtual ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::Url::CompareTo ( System::SharedPtr< Url pn)
virtual

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/2]

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::Url::Equals ( System::SharedPtr< Url obj)

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/2]

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::Url::Equals ( System::SharedPtr< Url x,
System::SharedPtr< Url 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.

◆ get_Category()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<UrlCategory> Aspose::Email::PersonalInfo::Url::get_Category ( ) const

Gets an object category

◆ get_Href()

ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::PersonalInfo::Url::get_Href ( ) const

Gets a URL

◆ get_Prefered()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::PersonalInfo::Url::get_Prefered ( ) const

Gets a value which defines whether object is preferred.

◆ GetHashCode() [1/2]

virtual ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::Url::GetHashCode ( ) const
virtual

GetHashCode returns a hash function for this object.

Returns
Returns a hash function for this object.

◆ GetHashCode() [2/2]

virtual ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::PersonalInfo::Url::GetHashCode ( System::SharedPtr< Url 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()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::Url::set_Category ( System::SharedPtr< UrlCategory value)

Sets an object category

◆ set_Href()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::Url::set_Href ( System::String  value)

Sets a URL

◆ set_Prefered()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::PersonalInfo::Url::set_Prefered ( bool  value)

Sets a value which defines whether object is preferred.

◆ ToString() [1/2]

virtual ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::PersonalInfo::Url::ToString ( )
virtual

Returns a string that represents the current object.

Returns
Returns a string that represents the current object.

◆ ToString() [2/2]

ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::PersonalInfo::Url::ToString ( ) const
override

Friends And Related Function Documentation

◆ operator!=

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

◆ operator==

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