Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetArrayElement Method (String, Object, Int32[])

PrivateObject.SetArrayElement Method (String, Object, Int32[])

Sets the array element by using an array of subscripts for each dimension.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public void SetArrayElement(
	string name,
	Object value,
	params int[] indices
)

Parameters

name
Type: String

The variable name of array to set.

value
Type: Object

The value to assign to the array element.

indices
Type: Int32[]

An array that represents the location of the element to set.

Show:
© 2015 Microsoft