System Namespace Array Class
Sets a value to the element at the specified position in the three-dimensional Array.
[ VB ]
<Serializable>
Overloads Public Sub SetValue ( _
ByVal value As Object, _
ByVal index1 As Integer, _
ByVal index2 As Integer, _
ByVal index3 As Integer _
)
[ C# ]
[Serializable]
public void SetValue (
object value,
int index1,
int index2,
int index3
);
[ C++ ]
[Serializable]
public: void SetValue (
Object* value,
int index1,
int index2,
int index3
);
[JScript ]
public Serializable
function SetValue (
value : Object,
index1 : int,
index2 : int,
index3 : int
);
- value
- The new value for the specified element.
- index1
- The first-dimension index of the Array element to set.
- index2
- The second-dimension index of the Array element to set.
- index3
- The third-dimension index of the Array element to set.
Exception Type |
Condition |
ArgumentException |
The current Array does not have exactly three dimensions.
-or-
value does not contain a type that can be widened, using the standard widening conversions, to the element type of the current Array.
|
IndexOutOfRangeException |
index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current Array. |
The GetLowerBound and GetUpperBound methods can determine whether any of the indexes is out of bounds.
For more information about conversions, see Convert.
Array Members Array.SetValue Overload List GetLowerBound GetUpperBound GetValue