|
static void | Initialize () |
| Initializes the SDK, by explicitly loading native binaries. Once Initialize() returns successfully, subsequent calls to Initialize() have no effect. If Initialize() is not called by the application, it will be called implicitly by the SDK, when the first native-backed SDK method is called. More...
|
|
static void | EnableSdkLeakTracking (bool enable) |
| Enables or disables SDK leak tracking. If leak tracking is enabled, stack traces are collected upon the creation of each Database. If the leak tracker subsequently detects that one of these objects is being disposed by the garbage collector, rather than through explicit disposal, an error will be logged to the Windows Application event log. Such an error will only be logged once. More...
|
|
static int | GetSdkLeakCount () |
| Gets the current number of SDK leaks. Requires SDK leak tracking to be enabled. More...
|
|
static List< string > | GetSdkLeakStackTraces () |
| Gets the current list of SDK leaks. Requires SDK leak tracking to be enabled. More...
|
|
static int | GetSdkObjectCount () |
| Gets the current number of SDK objects that have not yet been disposed. More...
|
|
static long | ToErrorCode (MessageIds msgId) |
| Converts the error message enumeration value to an ErrorCode that is used by the TRIMSDK TrimException class. More...
|
|
static string | GetMessage (MessageIds msgId) |
| Retrieves a message with the specified message id from the TRIM Messages database. More...
|
|
static string | GetMessage (MessageIds msgId, string substPercent1) |
| Retrieves a message with the specified message id from the TRIM Messages database. The substitution string provided will replace all occurrences of %1% that are found inside the TRIM Message. More...
|
|
static string | GetMessage (MessageIds msgId, string substPercent1, string substPercent2) |
| Retrieves a message with the specified message id from the TRIM Messages database. The substitution string substPercent1 will replace all occurrences of %1% that are found inside the TRIM Message. The substitution string substPercent2 will replace all occurrences of %2% that are found inside the TRIM Message. More...
|
|
static string | GetMessage (MessageIds msgId, string[] substPercentStrings) |
| Retrieves a message with the specified message id from the TRIM Messages database. The array of substitition strings will replace the values %1%, %2%, ... that are found inside the message. Note that although the array index is 0-based, the substitution strings are 1-based, so substPercentStrings[0] will be used to replace %1%. A maximum of 8 substitution strings are currently supported. More...
|
|
static string | GetMessage (Database db, MessageIds msgId) |
| Retrieves a message with the specified message id from the TRIM Messages database. The supplied database (if not null) will be used to do any customer-specific captioning of certain TRIM strings, and will also return the message in the language designated for the currently logged-on user in that database. More...
|
|
static string | GetMessage (Database db, MessageIds msgId, string substPercent1) |
| Retrieves a message with the specified message id from the TRIM Messages database. The substitution string provided will replace all occurrences of %1% that are found inside the TRIM Message. The supplied database (if not null) will be used to do any customer-specific captioning of certain TRIM strings, and will also return the message in the language designated for the currently logged-on user in that database. More...
|
|
static string | GetMessage (Database db, MessageIds msgId, string substPercent1, string substPercent2) |
| Retrieves a message with the specified message id from the TRIM Messages database. The substitution string substPercent1 will replace all occurrences of %1% that are found inside the TRIM Message. The substitution string substPercent2 will replace all occurrences of %2% that are found inside the TRIM Message. The supplied database (if not null) will be used to do any customer-specific captioning of certain TRIM strings, and will also return the message in the language designated for the currently logged-on user in that database. More...
|
|
static string | GetMessage (Database db, MessageIds msgId, string[] substPercentStrings) |
| Retrieves a message with the specified message id from the TRIM Messages database. The array of substitition strings will replace the values %1%, %2%, ... that are found inside the message. Note that although the array index is 0-based, the substitution strings are 1-based, so substPercentStrings[0] will be used to replace %1%. A maximum of 8 substitution strings are currently supported. The supplied database (if not null) will be used to do any customer-specific captioning of certain TRIM strings, and will also return the message in the language designated for the currently logged-on user in that database. More...
|
|
static void HP.HPTRIM.SDK.TrimApplicationBase.EnableSdkLeakTracking |
( |
bool |
enable | ) |
|
|
static |
Enables or disables SDK leak tracking. If leak tracking is enabled, stack traces are collected upon the creation of each Database. If the leak tracker subsequently detects that one of these objects is being disposed by the garbage collector, rather than through explicit disposal, an error will be logged to the Windows Application event log. Such an error will only be logged once.
If leak tracking is enabled, SDK applications can also manually check for leaks by calling GetSdkLeakCount() and GetSdkLeakStackTraces() at arbitrary points in the application.