Class CustomScriptExecutable
A factory class for creating an application object for a custom script executable.
Inheritance
Inherited Members
Namespace: VMS.TPS.Common.Model.API
Assembly: VMS.TPS.Common.Model.API.dll
Syntax
public static class CustomScriptExecutable
Methods
CreateApplication(String)
Creates an application object for a custom executable and logs it into the system.
Application object created by this method can be used when the executable itself is not a script. For example, an interpreter of a high level programming language, or a native C++ application that integrates into .NET and uses ESAPI.
The scripts executed with this application object are always read-only in a clinical environment, and writable in a non-clinical environment.
Declaration
public static Application CreateApplication(string scriptName)
Parameters
Type | Name | Description |
---|---|---|
System.String | scriptName | The script name for logging in. Preferably use the full absolute path. |
Returns
Type | Description |
---|---|
Application | Application object that is the root of the data model. |
Remarks
Code that uses ESAPI must run on a single-threaded apartment (STAThread). The Dispose method must be called before the program exits. Only one application object may be created during the entire run of the program.