AudioEngine.SetGlobalVariable Method
Sets the value of a global variable.
Syntax
'Declaration
Public Sub SetGlobalVariable ( _
name As String, _
value As Single _
)
public void SetGlobalVariable (
string name,
float value
)
public:
void SetGlobalVariable(
String name,
float value
)
Parameters
- name
Type: String
Value of the global variable. - value
Type: Single
Friendly name of the global 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
Reference
AudioEngine Class
AudioEngine Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Windows Phone