Share via


NSScriptCommandArgumentDescription Constructors

Definition

Overloads

Name Description
NSScriptCommandArgumentDescription()

Creates a new NSScriptCommandArgumentDescription with default (empty) values.

NSScriptCommandArgumentDescription(NSDictionary)

Creates a new NSScriptCommandArgumentDescription from the values that are specified in dictionary.

NSScriptCommandArgumentDescription(String, String, String, Boolean)

Initializes a new instance of the NSScriptCommandArgumentDescription class.

NSScriptCommandArgumentDescription()

Creates a new NSScriptCommandArgumentDescription with default (empty) values.

[Foundation.Preserve(Conditional=true)]
public NSScriptCommandArgumentDescription();
public NSScriptCommandArgumentDescription();
Attributes

Applies to

NSScriptCommandArgumentDescription(NSDictionary)

Creates a new NSScriptCommandArgumentDescription from the values that are specified in dictionary.

[Foundation.Preserve(Conditional=true)]
public NSScriptCommandArgumentDescription(Foundation.NSDictionary? dictionary);
public NSScriptCommandArgumentDescription(Foundation.NSDictionary? dictionary);
[<Foundation.Preserve(Conditional=true)>]
new Foundation.NSScriptCommandArgumentDescription : Foundation.NSDictionary -> Foundation.NSScriptCommandArgumentDescription
new Foundation.NSScriptCommandArgumentDescription : Foundation.NSDictionary -> Foundation.NSScriptCommandArgumentDescription

Parameters

dictionary
NSDictionary

The dictionary to use to populate the properties of this type.

Attributes

Applies to

NSScriptCommandArgumentDescription(String, String, String, Boolean)

Initializes a new instance of the NSScriptCommandArgumentDescription class.

public NSScriptCommandArgumentDescription(string name, string eventCode, string type, bool isOptional = false);
new Foundation.NSScriptCommandArgumentDescription : string * string * string * bool -> Foundation.NSScriptCommandArgumentDescription

Parameters

name
String

The name of the argument.

eventCode
String

The Apple event code for the argument. Must be a four-character string.

type
String

The type of the argument.

isOptional
Boolean

If true, the argument is optional; otherwise, false. Default is false.

Exceptions

Thrown when name, eventCode, or type is null or empty, or when eventCode is not a four-character string.

Applies to