ProcessExtensionsActivateAsync Method
Shows and activates the main application window.
Namespace: DevCase.Extensions.ProcessExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Task<bool> ActivateAsync(
this Process sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ActivateAsync (
sender As Process
) As Task(Of Boolean)
Dim sender As Process
Dim returnValue As Task(Of Boolean)
returnValue = sender.ActivateAsync()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Task<bool>^ ActivateAsync(
Process^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ActivateAsync :
sender : Process -> Task<bool>
No code example is currently available or this language may not be supported.
- sender Process
-
The source Process.
TaskBoolean if the application is successfully activated, otherwise,
.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Process. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim p As Process = Process.GetProcessesByName("Notepad").SingleOrDefault()
p.ActivateAsync()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.