Audio.PlaySystemSound(SystemSound) 메서드

정의

시스템 소리를 재생합니다.

public:
 void PlaySystemSound(System::Media::SystemSound ^ systemSound);
public void PlaySystemSound (System.Media.SystemSound systemSound);
member this.PlaySystemSound : System.Media.SystemSound -> unit
Public Sub PlaySystemSound (systemSound As SystemSound)

매개 변수

systemSound
SystemSound

재생할 시스템 소리를 나타내는 SystemSound 개체입니다.

예외

systemSound이(가) Nothing인 경우

예제

이 예제에서는 My.Computer.Audio.PlaySystemSound 시스템 소리를 재생 하는 방법입니다.

Sub PlaySystemSound()
    My.Computer.Audio.PlaySystemSound( 
        System.Media.SystemSounds.Asterisk)
End Sub

이 코드 예제는 Windows Forms 애플리케이션 내 에서만 실행할 수 있습니다.

설명

합니다 PlaySystemSound 에 설명 된 시스템 소리를 재생 하는 메서드 systemSound; 백그라운드에서 소리를 한 번 재생 됩니다.

변수의 systemSound 공유 멤버 중 하나 여야 합니다 SystemSounds 클래스:

자세한 내용은 놀이 소리합니다.

프로젝트 형식에 따라 가용성

프로젝트 형식 사용 가능
Windows 애플리케이션
클래스 라이브러리
콘솔 애플리케이션
Windows 컨트롤 라이브러리
웹 컨트롤 라이브러리 No
Windows 서비스
웹 사이트 No

적용 대상

추가 정보