System Namespace Array Class
Sets a value to the element at the specified position in the multidimensional Array.
[ VB ]
<Serializable>
Overloads Public Sub SetValue ( _
ByVal value As Object, _
ByVal indices ( ) As Integer _
)
[ C# ]
[Serializable]
public void SetValue (
object value,
int [ ] indices
);
[ C++ ]
[Serializable]
public: void SetValue (
Object* value,
int indices __gc [ ]
);
[JScript ]
public Serializable
function SetValue (
value : Object,
indices : int [ ]
);
- value
- The new value for the specified element.
- indices
- A one-dimensional array of indexes that specifies the position of the element to set.
The number of elements in indices must equal the number of dimensions in the Array. All elements in the indices array must collectively specify the position of the desired element in the multidimensional Array.
The GetLowerBound and GetUpperBound methods can determine whether any of the values in the indices array is out of bounds.
For more information about conversions, see Convert.
Array Members Array.SetValue Overload List GetLowerBound GetUpperBound GetValue