Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Starts vibration on the device.
Namespace: Microsoft.Devices
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Sub Start ( _
duration As TimeSpan _
)
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.
Remarks
This method may throw one of the following exceptions.
ArgumentException |
Duration is greater than the 5 seconds or duration is negative. |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone