NSScriptCommandDescription.Create 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.
Creates a new NSScriptCommandDescription with the specified suite name, command name, and command declaration.
public static Foundation.NSScriptCommandDescription Create(string suiteName, string commandName, Foundation.NSScriptCommandDescriptionDictionary commandDeclaration);
static member Create : string * string * Foundation.NSScriptCommandDescriptionDictionary -> Foundation.NSScriptCommandDescription
Parameters
- suiteName
- String
The name of the suite to which the command belongs.
- commandName
- String
The name of the command.
- commandDeclaration
- NSScriptCommandDescriptionDictionary
A dictionary containing the command declaration.
Returns
A new NSScriptCommandDescription instance.
Exceptions
Thrown when suiteName or commandName is null or empty, or when the command declaration is malformed.
Thrown when commandDeclaration is null.