Edit

Share via


NSWorkspace.LaunchApplication Method

Definition

Overloads

LaunchApplication(String)
LaunchApplication(String, Boolean, Boolean)
LaunchApplication(NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)
LaunchApplication(NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)
Obsolete.

LaunchApplication(String)

[Foundation.Export("launchApplication:")]
[ObjCRuntime.ThreadSafe]
public virtual bool LaunchApplication (string appName);
abstract member LaunchApplication : string -> bool
override this.LaunchApplication : string -> bool

Parameters

appName
String

Returns

Attributes

Applies to

LaunchApplication(String, Boolean, Boolean)

[Foundation.Export("launchApplication:showIcon:autolaunch:")]
[ObjCRuntime.ThreadSafe]
public virtual bool LaunchApplication (string appName, bool showIcon, bool autolaunch);
abstract member LaunchApplication : string * bool * bool -> bool
override this.LaunchApplication : string * bool * bool -> bool

Parameters

appName
String
showIcon
Boolean
autolaunch
Boolean

Returns

Attributes

Applies to

LaunchApplication(NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)

[Foundation.Export("launchApplicationAtURL:options:configuration:error:")]
[ObjCRuntime.ThreadSafe]
public virtual AppKit.NSRunningApplication LaunchApplication (Foundation.NSUrl url, AppKit.NSWorkspaceLaunchOptions options, Foundation.NSDictionary configuration, out Foundation.NSError error);
abstract member LaunchApplication : Foundation.NSUrl * AppKit.NSWorkspaceLaunchOptions * Foundation.NSDictionary *  -> AppKit.NSRunningApplication
override this.LaunchApplication : Foundation.NSUrl * AppKit.NSWorkspaceLaunchOptions * Foundation.NSDictionary *  -> AppKit.NSRunningApplication

Parameters

url
NSUrl
configuration
NSDictionary
error
NSError

Returns

Attributes

Applies to

LaunchApplication(NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)

Caution

Use the overload that takes 'ref NSError' instead.

[System.Obsolete("Use the overload that takes 'ref NSError' instead.")]
public virtual AppKit.NSRunningApplication LaunchApplication (Foundation.NSUrl url, AppKit.NSWorkspaceLaunchOptions options, Foundation.NSDictionary configuration, Foundation.NSError error);
abstract member LaunchApplication : Foundation.NSUrl * AppKit.NSWorkspaceLaunchOptions * Foundation.NSDictionary * Foundation.NSError -> AppKit.NSRunningApplication
override this.LaunchApplication : Foundation.NSUrl * AppKit.NSWorkspaceLaunchOptions * Foundation.NSDictionary * Foundation.NSError -> AppKit.NSRunningApplication

Parameters

url
NSUrl
configuration
NSDictionary
error
NSError

Returns

Attributes

Applies to