Cue.SetVariable Method
Sets the value of a cue-instance variable based on its friendly name.
Syntax
'Declaration
Public Sub SetVariable ( _
name As String, _
value As Single _
)
public void SetVariable (
string name,
float value
)
public:
void SetVariable(
String name,
float value
)
Parameters
- name
Type: String
Friendly name of the variable to set. - value
Type: Single
Value to assign to the variable.
Remarks
The friendly name is a text string that the designer can associate with the cue when it is built.
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
Cue Class
Cue Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Windows Phone