In The Hand LtdIn The Hand
Speed Property
NamespacesInTheHand.Device.LocationGeoCoordinateSpeed
.NET Components for Mobility
Gets or sets the speed in meters per second.
Declaration Syntax
C#Visual Basic
public double Speed { get; set; }
Public Property Speed As Double
	Get
	Set
Value
The speed in meters per second. The speed must be greater than or equal to zero, or NaN.
Examples
The following example prints the Course and Speed properties of the current location's GeoCoordinate.
CopyC#
static void GetLocationCourseAndSpeed()
{
    GeoCoordinateWatcher watcher = new GeoCoordinateWatcher();
    watcher.Start();
    System.Threading.Thread.Sleep(1000);
    if (watcher.Position.Location.IsUnknown != true)
    {
        GeoCoordinate coord = watcher.Position.Location;
        Debug.WriteLine("Course: {0}, Speed: {1}", coord.Course, coord.Speed);
    }
    else
    {
        Debug.WriteLine("Unknown");
    }
}
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionSpeed is set outside the valid range.

Assembly: InTheHand.Device (Module: InTheHand.Device) Version: 7.0.0.0