Export (0) Print
Expand All

PrivateObject.GetArrayElement Method (String, BindingFlags, Int32[])

Gets 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 Object GetArrayElement(
	string name,
	BindingFlags bindingFlags,
	params int[] indices
)

Parameters

name
Type: System.String

The variable name of array to get.

bindingFlags
Type: System.Reflection.BindingFlags
indices
Type: System.Int32[]

An array representing the location of the element to get.

Return Value

Type: System.Object
An object representing the array element.

ExceptionCondition
ArgumentNullException

name is null.

Show:
© 2014 Microsoft