PrivateType.SetStaticArrayElement Method (String, Object, array<Int32[])
Sets a static array element contained in the wrapped type.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.SmartDevice.UnitTestFramework (in Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub SetStaticArrayElement ( _
name As String, _
value As Object, _
ParamArray indices As Integer() _
)
'Usage
Dim instance As PrivateType
Dim name As String
Dim value As Object
Dim indices As Integer()
instance.SetStaticArrayElement(name, _
value, indices)
public void SetStaticArrayElement(
string name,
Object value,
params int[] indices
)
public:
void SetStaticArrayElement(
String^ name,
Object^ value,
... array<int>^ indices
)
public function SetStaticArrayElement(
name : String,
value : Object,
... indices : int[]
)
Parameters
name
Type: System.StringThe name of the array
value
Type: System.ObjectThe value to set the element identified by indices.
indices
Type: array<System.Int32[]An array of subscripts for identifying 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.