Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

invokeAttr

A bitmask comprised of one or more BindingFlags that specifies how the search for the element is conducted. The type of lookup need not be specified.

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: