-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
SystemSounds.xml
292 lines (272 loc) · 18.8 KB
/
SystemSounds.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<Type Name="SystemSounds" FullName="System.Media.SystemSounds">
<TypeSignature Language="C#" Value="public static class SystemSounds" FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit SystemSounds extends System.Object" FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<TypeSignature Language="DocId" Value="T:System.Media.SystemSounds" />
<TypeSignature Language="VB.NET" Value="Public Class SystemSounds" FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<TypeSignature Language="F#" Value="type SystemSounds = class" />
<TypeSignature Language="C++ CLI" Value="public ref class SystemSounds abstract sealed" FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<TypeSignature Language="C#" Value="public sealed class SystemSounds" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit SystemSounds extends System.Object" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class SystemSounds" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<TypeSignature Language="C++ CLI" Value="public ref class SystemSounds sealed" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Extensions</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0;windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-8.0;net-9.0;windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(1)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Retrieves sounds associated with a set of Windows operating system sound-event types. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Media.SystemSounds> class provides methods for retrieving the sounds associated with a set of operating system sound-event types for the current user. The sounds associated with each type of operating system sound event can be configured in Windows Control Panel.
<xref:System.Media.SystemSounds> provides static methods to access the sounds associated with the <xref:System.Media.SystemSounds.Asterisk%2A>, <xref:System.Media.SystemSounds.Beep%2A>, <xref:System.Media.SystemSounds.Exclamation%2A>, <xref:System.Media.SystemSounds.Hand%2A> and <xref:System.Media.SystemSounds.Question%2A> sound events. Each property returns a <xref:System.Media.SystemSound> that can be used to play the sound.
]]></format>
</remarks>
<altmember cref="T:System.Media.SystemSound" />
<altmember cref="T:System.Media.SoundPlayer" />
<related type="Article" href="/dotnet/framework/winforms/controls/soundplayer-class">SoundPlayer Class (Windows Forms)</related>
</Docs>
<Members>
<Member MemberName="Asterisk">
<MemberSignature Language="C#" Value="public static System.Media.SystemSound Asterisk { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Media.SystemSound Asterisk" />
<MemberSignature Language="DocId" Value="P:System.Media.SystemSounds.Asterisk" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Asterisk As SystemSound" />
<MemberSignature Language="F#" Value="static member Asterisk : System.Media.SystemSound" Usage="System.Media.SystemSounds.Asterisk" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Media::SystemSound ^ Asterisk { System::Media::SystemSound ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Extensions</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Media.SystemSound</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the sound associated with the <see langword="Asterisk" /> program event in the current Windows sound scheme.</summary>
<value>A <see cref="T:System.Media.SystemSound" /> associated with the <see langword="Asterisk" /> program event in the current Windows sound scheme.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example demonstrates the use of the <xref:System.Media.SystemSounds.Asterisk%2A> property.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/SystemSoundsExample/CPP/form1.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Media/SystemSound/Overview/form1.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/SystemSoundsExample/VB/form1.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Media.SystemSound" />
<altmember cref="T:System.Media.SoundPlayer" />
<related type="Article" href="/dotnet/framework/winforms/controls/soundplayer-class">SoundPlayer Class (Windows Forms)</related>
</Docs>
</Member>
<Member MemberName="Beep">
<MemberSignature Language="C#" Value="public static System.Media.SystemSound Beep { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Media.SystemSound Beep" />
<MemberSignature Language="DocId" Value="P:System.Media.SystemSounds.Beep" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Beep As SystemSound" />
<MemberSignature Language="F#" Value="static member Beep : System.Media.SystemSound" Usage="System.Media.SystemSounds.Beep" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Media::SystemSound ^ Beep { System::Media::SystemSound ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Extensions</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Media.SystemSound</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the sound associated with the <see langword="Beep" /> program event in the current Windows sound scheme.</summary>
<value>A <see cref="T:System.Media.SystemSound" /> associated with the <see langword="Beep" /> program event in the current Windows sound scheme.</value>
<remarks>
<format type="text/markdown"><![CDATA[
On Windows Server 2022, the Microsoft\Windows\Multimedia\SystemSoundsService task in Task Scheduler is disabled. Both this task and the Windows Audio service need to be enabled for `SystemSounds.Beep.Play()` to function correctly.
## Examples
The following code example demonstrates the use of the <xref:System.Media.SystemSounds.Beep> property.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/SystemSoundsExample/CPP/form1.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Media/SystemSound/Overview/form1.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/SystemSoundsExample/VB/form1.vb" id="Snippet2":::
]]></format>
</remarks>
<altmember cref="T:System.Media.SystemSound" />
<altmember cref="T:System.Media.SoundPlayer" />
<related type="Article" href="/dotnet/framework/winforms/controls/soundplayer-class">SoundPlayer Class (Windows Forms)</related>
</Docs>
</Member>
<Member MemberName="Exclamation">
<MemberSignature Language="C#" Value="public static System.Media.SystemSound Exclamation { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Media.SystemSound Exclamation" />
<MemberSignature Language="DocId" Value="P:System.Media.SystemSounds.Exclamation" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Exclamation As SystemSound" />
<MemberSignature Language="F#" Value="static member Exclamation : System.Media.SystemSound" Usage="System.Media.SystemSounds.Exclamation" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Media::SystemSound ^ Exclamation { System::Media::SystemSound ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Extensions</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Media.SystemSound</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the sound associated with the <see langword="Exclamation" /> program event in the current Windows sound scheme.</summary>
<value>A <see cref="T:System.Media.SystemSound" /> associated with the <see langword="Exclamation" /> program event in the current Windows sound scheme.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example demonstrates the use of the <xref:System.Media.SystemSounds.Exclamation%2A> property.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/SystemSoundsExample/CPP/form1.cpp" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Media/SystemSound/Overview/form1.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/SystemSoundsExample/VB/form1.vb" id="Snippet3":::
]]></format>
</remarks>
<altmember cref="T:System.Media.SystemSound" />
<altmember cref="T:System.Media.SoundPlayer" />
<related type="Article" href="/dotnet/framework/winforms/controls/soundplayer-class">SoundPlayer Class (Windows Forms)</related>
</Docs>
</Member>
<Member MemberName="Hand">
<MemberSignature Language="C#" Value="public static System.Media.SystemSound Hand { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Media.SystemSound Hand" />
<MemberSignature Language="DocId" Value="P:System.Media.SystemSounds.Hand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Hand As SystemSound" />
<MemberSignature Language="F#" Value="static member Hand : System.Media.SystemSound" Usage="System.Media.SystemSounds.Hand" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Media::SystemSound ^ Hand { System::Media::SystemSound ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Extensions</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Media.SystemSound</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the sound associated with the <see langword="Hand" /> program event in the current Windows sound scheme.</summary>
<value>A <see cref="T:System.Media.SystemSound" /> associated with the <see langword="Hand" /> program event in the current Windows sound scheme.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example demonstrates the use of the <xref:System.Media.SystemSounds.Hand%2A> property.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/SystemSoundsExample/CPP/form1.cpp" id="Snippet4":::
:::code language="csharp" source="~/snippets/csharp/System.Media/SystemSound/Overview/form1.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/SystemSoundsExample/VB/form1.vb" id="Snippet4":::
]]></format>
</remarks>
<altmember cref="T:System.Media.SystemSound" />
<altmember cref="T:System.Media.SoundPlayer" />
<related type="Article" href="/dotnet/framework/winforms/controls/soundplayer-class">SoundPlayer Class (Windows Forms)</related>
</Docs>
</Member>
<Member MemberName="Question">
<MemberSignature Language="C#" Value="public static System.Media.SystemSound Question { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Media.SystemSound Question" />
<MemberSignature Language="DocId" Value="P:System.Media.SystemSounds.Question" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property Question As SystemSound" />
<MemberSignature Language="F#" Value="static member Question : System.Media.SystemSound" Usage="System.Media.SystemSounds.Question" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Media::SystemSound ^ Question { System::Media::SystemSound ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Extensions</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Media.SystemSound</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the sound associated with the <see langword="Question" /> program event in the current Windows sound scheme.</summary>
<value>A <see cref="T:System.Media.SystemSound" /> associated with the <see langword="Question" /> program event in the current Windows sound scheme.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example demonstrates the use of the <xref:System.Media.SystemSounds.Question%2A> property.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/SystemSoundsExample/CPP/form1.cpp" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Media/SystemSound/Overview/form1.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/SystemSoundsExample/VB/form1.vb" id="Snippet5":::
]]></format>
</remarks>
<altmember cref="T:System.Media.SystemSound" />
<altmember cref="T:System.Media.SoundPlayer" />
<related type="Article" href="/dotnet/framework/winforms/controls/soundplayer-class">SoundPlayer Class (Windows Forms)</related>
</Docs>
</Member>
</Members>
</Type>