SystemInfo Class | Apache log4net™ SDK Documentation

Utility class for system specific information.
Inheritance Hierarchy

System
Object
log4net.Util
SystemInfo

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public sealed class SystemInfo

    Public NotInheritable Class SystemInfo

    public ref class SystemInfo sealed

    [<SealedAttribute>]
    type SystemInfo =  class end

The SystemInfo type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| ApplicationBaseDirectory | Gets the base directory for this AppDomain.
| ApplicationFriendlyName | Get this application's friendly name
| ConfigurationFileLocation | Gets the path to the configuration file for the current AppDomain.
| CurrentThreadId | Gets the ID of the current thread.
| EntryAssemblyLocation | Gets the path to the file that first executed in the current AppDomain.
| HostName | Get the host name or machine name for the current machine
| NewLine | Gets the system dependent line terminator.
| NotAvailableText | Text to output when an unsupported feature is requested.
| NullText | Text to output when a null is encountered.
| ProcessStartTime | Obsolete. Get the start time for the current process.
| ProcessStartTimeUtc | Get the UTC start time for the current process.

Top
Methods

| Name | Description
--- | --- | ---
| AssemblyFileName | Gets the file name portion of the Assembly, including the extension.
| AssemblyLocationInfo | Gets the assembly location path for the specified assembly.
| AssemblyQualifiedName | Gets the fully qualified name of the Type, including the name of the assembly from which the Type was loaded.
| AssemblyShortName | Gets the short name of the Assembly.
| ConvertToFullPath | Convert a path into a fully qualified local file path.
| CreateArgumentOutOfRangeException | Create an ArgumentOutOfRangeException
| CreateCaseInsensitiveHashtable | Creates a new case-insensitive instance of the Hashtable class with the default initial capacity.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| EqualsIgnoringCase | Tests two strings for equality, the ignoring case.
| GetAppSetting | Lookup an application setting
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| GetTypeFromString(String, Boolean, Boolean) | Loads the type specified in the type string.
| GetTypeFromString(Assembly, String, Boolean, Boolean) | Loads the type specified in the type string.
| GetTypeFromString(Type, String, Boolean, Boolean) | Loads the type specified in the type string.
| NewGuid | Generate a new guid
| ToString | Returns a String that represents the current Object. (Inherited from Object.)
| TryParse(String, Int16 ) | Parse a string into an Int16 value
| TryParse(String, Int32 ) | Parse a string into an Int32 value
| TryParse(String, Int64 ) | Parse a string into an Int64 value

Top
Fields

| Name | Description
--- | --- | ---
| EmptyTypes | Gets an empty array of types.

Top
Remarks

Utility class of static methods for system specific information.

See Also

#### Reference

log4net.Util Namespace