System.ConsoleDriver.Beep C# (CSharp) Méthode

Beep() public static méthode

public static Beep ( int frequency, int duration ) : void
frequency int
duration int
Résultat void
		public static void Beep (int frequency, int duration)
		{
			driver.Beep (frequency, duration);
		}
		

Usage Example

Exemple #1
0
		public static void Beep (int frequency, int duration)
		{
			if (frequency < 37 || frequency > 32767)
				throw new ArgumentOutOfRangeException ("frequency");

			if (duration <= 0)
				throw new ArgumentOutOfRangeException ("duration");

			ConsoleDriver.Beep (frequency, duration);
		}