Checks if the provided degrees part of a latitude in DMS is valid
true - if the degrees part is valid, false - if the degrees part is invalid
The function verifies validity of its arguments and parsing results. The valid degrees part is an integer number in the range from 0 (inclusive) to 90 (exclusive).
This sample shows how to call the Geodetic.Latitude.IsValidDegrees method from C# code:
string errorMessage = String.Empty;
int degrees = 34;
bool includePoles = true;
string str = String.Empty;
if (Geodetic.Latitude.IsValidDegrees(degrees, includePoles, out errorMessage))
{
Console.WriteLine("The degrees part is valid.");
}
else
{
Console.WriteLine(errorMessage);
}