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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για