Bagikan melalui


AudioEngine.GetCategory Method

Gets an audio category.

Syntax

'Declaration
Public Function GetCategory ( _
         name As String _
) As AudioCategory 
public AudioCategory GetCategory (
         string name
)
public:
AudioCategory GetCategory(
         String name
)

Parameters

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

Return Value

Type: AudioCategory
Audio category.

Exceptions

Exception type Condition
InvalidOperationException This resource could not be created.

Requirements

Namespace: Microsoft.Xna.Framework.Audio

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Concepts

Sounds Overview

Reference

AudioEngine Class
AudioEngine Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

Windows Phone