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.
Sends the keystrokes to generate the specified text.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public MustOverride Sub SendKeys ( _
control As UITechnologyElement, _
text As String, _
modifierKeys As ModifierKeys, _
isUnicode As Boolean _
)
public abstract void SendKeys(
UITechnologyElement control,
string text,
ModifierKeys modifierKeys,
bool isUnicode
)
public:
virtual void SendKeys(
UITechnologyElement^ control,
String^ text,
ModifierKeys modifierKeys,
bool isUnicode
) abstract
abstract SendKeys :
control:UITechnologyElement *
text:string *
modifierKeys:ModifierKeys *
isUnicode:bool -> unit
public abstract function SendKeys(
control : UITechnologyElement,
text : String,
modifierKeys : ModifierKeys,
isUnicode : boolean
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementControl to which the keys are to be sent.
text
Type: StringText to type.
- modifierKeys
Type: ModifierKeys
isUnicode
Type: BooleanIf true, sends the keys as Unicode, otherwise as scan code
.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.