Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers.
- value
- The new value for the specified element.
- index1
- A 64-bit integer that represents the first-dimension index of the Array element to set.
- index2
- A 64-bit integer that represents the second-dimension index of the Array element to set.
- index3
- A 64-bit integer that represents the third-dimension index of the Array element to set.
The Array.GetLowerBound(int) and Array.GetUpperBound(int) methods can determine whether any of the indexes is out of bounds.
For more information about conversions, see Convert.
This method is an O(1) operation.
If erload:System.Array.SetValue is used to assign null to an element of an array of value types, all fields of the element are initialized to zero. The value of the element is not a null reference, and cannot be found by searching for a null reference.