AudioEngine.GetCategory Method (Microsoft.Xna.Framework.Audio)

Returns an audio category by name.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public AudioCategory GetCategory(
	string name

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.String
Friendly name of the category to get.

Return Value

Type: Microsoft.Xna.Framework.Audio.AudioCategory
The AudioCategory with a matching name. Throws an exception if not found.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop