CompareTo()

Guid::CompareTo(const Guid&) const method

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

int System::Guid::CompareTo(const Guid &g) const

Arguments

ParameterTypeDescription
gconst Guid&The comparand

Return Value

-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