此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
初始化 UITestBuilderButton 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
Public Sub New ( _
name As String, _
toolTip As String, _
accelerator As Key, _
image As BitmapImage _
)
public UITestBuilderButton(
string name,
string toolTip,
Key accelerator,
BitmapImage image
)
public:
UITestBuilderButton(
String^ name,
String^ toolTip,
Key accelerator,
BitmapImage^ image
)
new :
name:string *
toolTip:string *
accelerator:Key *
image:BitmapImage -> UITestBuilderButton
public function UITestBuilderButton(
name : String,
toolTip : String,
accelerator : Key,
image : BitmapImage
)
参数
- name
类型:System.String
按钮的名称。
- toolTip
类型:System.String
要用于按钮的工具提示。
- accelerator
类型:System.Windows.Input.Key
按钮的键盘快捷键。
- image
类型:System.Windows.Media.Imaging.BitmapImage
要在按钮上显示的图像。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。