ArraySetValue Method (Object, Int64, Int64, Int64) |
Sets a value to the element at the specified position in the three-dimensional
Array. The indexes are specified as 64-bit integers.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public void SetValue(
Object value,
long index1,
long index2,
long index3
)
Parameters
- value
- Type: SystemObject
The new value for the specified element. - index1
- Type: SystemInt64
A 64-bit integer that represents the first-dimension index of the Array element to set. - index2
- Type: SystemInt64
A 64-bit integer that represents the second-dimension index of the Array element to set. - index3
- Type: SystemInt64
A 64-bit integer that represents the third-dimension index of the Array element to set.
Exceptions Exception | Condition |
---|
ArgumentException | The current Array does not have exactly three dimensions. |
InvalidCastException | value cannot be cast to the element type of the current Array. |
ArgumentOutOfRangeException | index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current Array. |
See Also