Skip to main content
.NET Framework Class Library
Array..::.SetValue Method





Sets the specified element in the current Array to the specified value.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodSetValue(Object, Int32)Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer.
Public methodSetValue(Object, array<Int32>[]()[])Sets a value to the element at the specified position in the multidimensional Array. The indexes are specified as an array of 32-bit integers.
Public methodSetValue(Object, Int64)Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer.
Public methodSetValue(Object, array<Int64>[]()[])Sets a value to the element at the specified position in the multidimensional Array. The indexes are specified as an array of 64-bit integers.
Public methodSetValue(Object, Int32, Int32)Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers.
Public methodSetValue(Object, Int64, Int64)Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 64-bit integers.
Public methodSetValue(Object, Int32, Int32, Int32)Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 32-bit integers.
Public methodSetValue(Object, Int64, Int64, Int64)Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers.
Top
Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?