Sets the value of the element at the specified position in the current two-dimensional instance.
Type Reason ArgumentException The current instance does not have exactly two dimensions. IndexOutOfRangeException At least one of index1 or index2 is outside the range of valid indices for the corresponding dimension of the current instance. InvalidCastException value is not assignment-compatible with the element type of the current instance.
Note:For more information regarding valid conversions that will be performed by this method, see Convert.
Use the Array.GetLowerBound(int) and Array.GetUpperBound(int) methods to determine whether any of the indices are out of bounds.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0