asp.net.ph

Array.SetValue Method ( Object, Int32, Int32, Int32 )

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
);

Parameters

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.

Exceptions


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.

Remarks

The GetLowerBound and GetUpperBound methods can determine whether any of the indexes is out of bounds.

For more information about conversions, see Convert.

See Also

Array Members   Array.SetValue Overload List   GetLowerBound   GetUpperBound   GetValue Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph