System::Guid::CompareTo method

Guid::CompareTo method

Performs arithmetic comparison of the GUIDs represented by the current and specified objects.

int System::Guid::CompareTo(const Guid &g) const
ParameterTypeDescription
gconst Guid&The comparand

ReturnValue

-1 if the GUID represented by the current object is less than the GUID represented by g; 0 if the GUIDs are equal; 1 if the GUID represented by the current object is greater than the GUID represented by g

See Also