MediaAction 建構函式 (UITechnologyElement, UITestMediaEventInfo)

透過指定的媒體事件,建立 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
)

參數

.NET Framework 安全性

請參閱

參考

MediaAction 類別

MediaAction 多載

Microsoft.VisualStudio.TestTools.UITest.Common 命名空間