Interaction.Beep 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for