Checks if the provided seconds part of a longitude in DMS is valid
true - if the seconds part is valid, false - if the seconds part is invalid
The function verifies validity of its arguments and parsing results. The valid seconds part is a real number in the range from 0 (inclusive) to 60 (exclusive).
This sample shows how to call the Geodetic.Longitude.IsValidSeconds method from C# code:
string errorMessage = String.Empty;
double seconds = 56.789;
string str = String.Empty;
if (Geodetic.Longitude.IsValidSeconds(seconds, out errorMessage))
{
Console.WriteLine("The seconds part is valid.");
}
else
{
Console.WriteLine(errorMessage);
}