Share via


PrivateType.GetStaticArrayElement Method (String, BindingFlags, 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, _
    bindingFlags As BindingFlags, _
    ParamArray indices As Integer() _
) As Object
public Object GetStaticArrayElement(
    string name,
    BindingFlags bindingFlags,
    params int[] indices
)
public:
Object^ GetStaticArrayElement(
    String^ name, 
    BindingFlags bindingFlags, 
    ... array<int>^ indices
)
member GetStaticArrayElement : 
        name:string * 
        bindingFlags:BindingFlags * 
        indices:int[] -> Object
public function GetStaticArrayElement(
    name : String, 
    bindingFlags : BindingFlags, 
    ... indices : int[]
) : Object

Parameters

  • name
    Type: String

    The name of the array

  • bindingFlags
    Type: BindingFlags
  • 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