创建指定媒体事件的 UITechnologyElement 的 MediaAction 实例
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
Public Sub New ( _
element As UITechnologyElement, _
eventArgs As UITestMediaEventInfo _
)
public MediaAction(
UITechnologyElement element,
UITestMediaEventInfo eventArgs
)
public:
MediaAction(
UITechnologyElement^ element,
UITestMediaEventInfo^ eventArgs
)
new :
element:UITechnologyElement *
eventArgs:UITestMediaEventInfo -> MediaAction
public function MediaAction(
element : UITechnologyElement,
eventArgs : UITestMediaEventInfo
)
参数
element
类型:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement实施 MediaActio 操作的元素。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。