Muokkaa

Jaa


Interaction.Beep Method

Definition

Sounds a tone through the computer's speaker.

public:
 static void Beep();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void Beep ();
public static void Beep ();
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Beep : unit -> unit
static member Beep : unit -> unit
Public Sub Beep ()
Attributes

Examples

This example uses the Beep function to sound a tone through the computer's speaker.

' Sound a tone.
Beep()

Remarks

The pitch and duration of the beep depend on your hardware and system software and therefore vary among computers.

Note

The Beep function requires UIPermission at the SafeTopLevelWindows level, which may affect its execution in partial-trust situations. For more information, see UIPermission.

Applies to

See also