Class Library
Static class containing global library initialization functions
Inherited Members
Namespace: ic4
Assembly: ic4dotnet.dll
Syntax
public static class Library
Properties
IsInitialized
Checks whether the library was initialized by a successful call to Init(LogLevel, LogLevel, LogTarget, string).
Declaration
public static bool IsInitialized { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetVersionInfo(VersionInfoFlags)
Queries the library for version information about the core library and other relevant components.
The version information is returned in a user-readable formatted string.
Declaration
public static string GetVersionInfo(VersionInfoFlags flags = VersionInfoFlags.Default)
Parameters
Type | Name | Description |
---|---|---|
VersionInfoFlags | flags | Selects which version information to return. |
Returns
Type | Description |
---|---|
string | A user-readable string containing the requested version information. |
Init(LogLevel, LogLevel, LogTarget, string)
Initializes the IC Imaging Control 4 .NET library.
Declaration
public static void Init(LogLevel apiLogLevel = LogLevel.Off, LogLevel internalLogLevel = LogLevel.Off, LogTarget logTargets = LogTarget.None, string logFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | apiLogLevel | Configures the API log level for the library. |
LogLevel | internalLogLevel | Configures the internal log level for the library. |
LogTarget | logTargets | Configures the log targets. |
string | logFilePath | If |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The platform is not supported |