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: System.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
- 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.