Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the UITestBuilderButton class.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
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
)
Parameters
- name
Type: System.String
The name of the button.
- toolTip
Type: System.String
The tooltip to use for the button.
- accelerator
Type: System.Windows.Input.Key
The keyboard shortcut key for the button.
- image
Type: System.Windows.Media.Imaging.BitmapImage
The image to display on the button.
.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.