Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Cue.SetVariable Method

Sets the value of a cue-instance variable based on its friendly name.

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

public void SetVariable (
         string name,
         float value


Type: String
Friendly name of the variable to set.
Type: Single
Value to assign to the variable.

The friendly name is a text string that the designer can associate with the cue when it is built.

Exception typeCondition
ArgumentNullException The name parameter is null.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2015 Microsoft