Share via


EffectParameter.GetValueBooleanArray Method

Gets the value of the EffectParameter as an array of Boolean.

Syntax

'Declaration
Public Function GetValueBooleanArray ( _
         count As Integer _
) As Boolean[] 
public bool[] GetValueBooleanArray (
         int count
)
public:
bool[] GetValueBooleanArray(
         int count
)

Parameters

  • count
    Type: Int32
    The number of elements in the array.

Return Value

Type: Boolean
The value of the EffectParameter as an array of Boolean.

Exceptions

Exception type Condition
ArgumentOutOfRangeException When attempting to call GetValueBooleanArray which returns an array, you must request that at least one member be returned.

Remarks

Getting the value of an effect parameter is a slow operation. Avoid high-frequency calls.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

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

See Also

Reference

EffectParameter Class
EffectParameter Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone