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::GetArrayElement Method (String^, array<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,
	... array<int>^ indices
)

Parameters

name
Type: System::String^

The variable name of array to get.

indices
Type: array<System::Int32>^

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

Return Value

Type: System::Object^

An object that represents the array element.

Exception Condition
ArgumentNullException

name is null.

Return to top
Show: