NSWorkspace.LaunchApplication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
- options
- NSWorkspaceLaunchOptions
- 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
- options
- NSWorkspaceLaunchOptions
- configuration
- NSDictionary
- error
- NSError
Returns
- Attributes