Share via


VibrationDevice.Vibrate(TimeSpan) Method

Definition

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

duration
TimeSpan TimeSpan

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.

Applies to