how to make error sound c#

C#
System.Media.SystemSounds.Exclamation.Play();

Source

Also in C#: