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: System.String

The variable name of array to set.

value
Type: System.Object

The value to assign to the array element.

indices
Type: System.Int32[]

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

Return to top
Show:
© 2016 Microsoft