IUITestActionStack.Peek Method (Int32)

Returns the element at the provided index from the stack without removing it.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Function Peek ( _
    nth As Integer _
) As UITestAction
UITestAction Peek(
    int nth
)
UITestAction^ Peek(
    int nth
)
abstract Peek : 
        nth:int -> UITestAction
function Peek(
    nth : int
) : UITestAction

Parameters

  • nth
    Type: Int32

    An int that indicates the index of the element to retrieve.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Common.UITestAction
The element at the specified index.

.NET Framework Security

See Also

Reference

IUITestActionStack Interface

Peek Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITestAction