VibrateController.Start Method

May 11, 2014

Starts vibration on the device.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public void Start(
	TimeSpan duration
)

Parameters

duration
Type: System.TimeSpan
A TimeSpan object specifying the amount of time, in seconds, for which the phone vibrates. Valid times are between 0 and 5 seconds. Values greater than 5 or less than 0 raise an exception.

This method may throw one of the following exceptions.

ArgumentException

Duration is greater than the 5 seconds or duration is negative.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft