IDesktopUserActions.SetFocusOnApplication Method
Requests the desktop to set focus on the application requested.
Namespace: Microsoft.Uii.Desktop.Core
Assembly: Microsoft.Uii.Desktop.Core (in Microsoft.Uii.Desktop.Core.dll)
Usage
'Usage
Dim instance As IDesktopUserActions
Dim applicationName As String
Dim returnValue As Boolean
returnValue = instance.SetFocusOnApplication(applicationName)
Syntax
'Declaration
Function SetFocusOnApplication ( _
applicationName As String _
) As Boolean
bool SetFocusOnApplication (
string applicationName
)
bool SetFocusOnApplication (
String^ applicationName
)
boolean SetFocusOnApplication (
String applicationName
)
function SetFocusOnApplication (
applicationName : String
) : boolean
Parameters
- applicationName
Specifies the name of the application to set focus on.
Return Value
Type: Boolean
True if the focus was set, otherwise false.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
IDesktopUserActions Interface
IDesktopUserActions Members
Microsoft.Uii.Desktop.Core Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.