IUITestActionStack.Peek 方法 (Int32)
返回堆栈中所提供索引处的元素,但不将其移除。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
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
参数
- nth
类型:System.Int32
一个 int,指示要检索的元素的索引。
返回值
类型:Microsoft.VisualStudio.TestTools.UITest.Common.UITestAction
位于指定索引处的元素。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。