PrivateObject.SetArrayElement Method (String, Object, array<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)
Syntax
'Declaration
Public Sub SetArrayElement ( _
name As String, _
value As Object, _
ParamArray indices As Integer() _
)
public void SetArrayElement(
string name,
Object value,
params int[] indices
)
public:
void SetArrayElement(
String^ name,
Object^ value,
... array<int>^ indices
)
member SetArrayElement :
name:string *
value:Object *
indices:int[] -> unit
public function SetArrayElement(
name : String,
value : Object,
... indices : int[]
)
Parameters
name
Type: StringThe variable name of array to set.
value
Type: ObjectThe value to assign to the array element.
indices
Type: array<Int32[]An array that represents the location of the element to set.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.