VibrationDevice.Vibrate(TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Vibrates the phone for the specified duration (from 0 to 5 seconds).
public:
virtual void Vibrate(TimeSpan duration) = Vibrate;
void Vibrate(TimeSpan const& duration);
public void Vibrate(System.TimeSpan duration);
function vibrate(duration)
Public Sub Vibrate (duration As TimeSpan)
Parameters
The duration (from 0 to 5 seconds) for which the phone vibrates. A value that is less than 0 or greater than 5 raises an exception.