Class Globals
This class is internal to the Eclipse Scripting API.
Inheritance
Inherited Members
Namespace: VMS.TPS.Common.Model.API
Assembly: VMS.TPS.Common.Model.API.dll
Syntax
public class Globals
Constructors
Globals()
Declaration
public Globals()
Properties
AbortNow
The flag that aborts script execution the next time any property or method of the Eclipse Scripting API is accessed.
Declaration
public static bool AbortNow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultMaximumNumberOfLoggedApiCalls
The default maximum number of API calls that are saved in the script execution log.
Declaration
public static int DefaultMaximumNumberOfLoggedApiCalls { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DisableApiAccessTrace()
Disables the getting of access information for API members through .NET trace listener.
Declaration
public static void DisableApiAccessTrace()
EnableApiAccessTrace()
Enables the getting of access information for API members through .NET trace listener.
Declaration
public static void EnableApiAccessTrace()
GetLoggedApiCalls()
Returns the last called properties and methods. The oldest cached call is the first. The maximum number of logged calls is set by calling SetMaximumNumberOfLoggedApiCalls.
Declaration
public static IEnumerable<string> GetLoggedApiCalls()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | The called API properties and methods as saved in the cache. |
SetMaximumNumberOfLoggedApiCalls(Int32)
Sets the maximum number of the API calls that are saved in the script execution log. This will clear the existing log entries.
Declaration
public static void SetMaximumNumberOfLoggedApiCalls(int apiLogCacheSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | apiLogCacheSize | The cache size for API call logs. Setting the value to zero disables logging. |