API Reference
Class
EventLogSizePolicy
Windows Event Log size limits and validation helpers.
Inheritance
- Object
- EventLogSizePolicy
Methods
public static Boolean IsValidMaximumSize(Nullable<Int64> maximumSizeInBytes) #Returns:
BooleanDetermines whether a configured Windows Event Log maximum size is within supported platform limits.
Parameters
- maximumSizeInBytes System.Nullable{System.Int64}
- Configured maximum size in bytes.
Returns
true when the size is present, in range, and aligned to the 64 KB event-log allocation unit.
public static Boolean IsValidMaximumSizeInKilobytes(Nullable<Int32> maximumSizeInKilobytes) #Returns:
BooleanDetermines whether a configured Windows Event Log maximum size in kilobytes is within supported platform limits.
Parameters
- maximumSizeInKilobytes System.Nullable{System.Int32}
- Configured maximum size in kilobytes.
Returns
true when the size is present, in range, and aligned to the 64 KB event-log allocation unit.
public static Boolean IsWithinMaximumSizeInMegabytes(Nullable<Double> sizeInMegabytes) #Returns:
BooleanDetermines whether an observed event log file size is within the platform maximum.
Parameters
- sizeInMegabytes System.Nullable{System.Double}
- Observed size in megabytes.
Returns
true when the size is present and does not exceed the platform maximum.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object