Partager via


PrivateType.GetStaticArrayElement Method (String, array<Int32 )

Gets a static array element contained in the wrapped type.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Function GetStaticArrayElement ( _
    name As String, _
    ParamArray indices As Integer() _
) As Object
public Object GetStaticArrayElement(
    string name,
    params int[] indices
)
public:
Object^ GetStaticArrayElement(
    String^ name, 
    ... array<int>^ indices
)
member GetStaticArrayElement : 
        name:string * 
        indices:int[] -> Object
public function GetStaticArrayElement(
    name : String, 
    ... indices : int[]
) : Object

Parameters

  • name
    Type: String

    The name of the array

  • indices
    Type: array<Int32[]

    An array of subscripts for identifying the element to get.

Return Value

Type: Object
An object that represents an element of name at the location specified with indices.

.NET Framework Security

See Also

Reference

PrivateType Class

GetStaticArrayElement Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace