Export (0) Print
Expand All

PrivateObject.SetArrayElement Method (String, BindingFlags, 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,
	BindingFlags bindingFlags,
	Object value,
	params int[] indices
)

Parameters

name
Type: System.String

The variable name of array to set.

bindingFlags
Type: System.Reflection.BindingFlags
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.

Show:
© 2014 Microsoft