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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: