Bagikan melalui


AudioEngine.GetGlobalVariable Method

Gets the value of a global variable.

Syntax

'Declaration
Public Function GetGlobalVariable ( _
         name As String _
) As Single 
public float GetGlobalVariable (
         string name
)
public:
float GetGlobalVariable(
         String name
)

Parameters

  • name
    Type: String
    Friendly name of the variable.

Return Value

Type: Single
Value of the variable.

Remarks

A global variable has global scope. It can be accessed by all code within a project.

Exceptions

Exception type Condition
ArgumentNullException The name parameter is null.

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