API Reference
Class
EventLogChannelPolicy
Channel-level Windows Event Log settings (enablement, size, path, retention, security descriptor).
Inheritance
- Object
- EventLogChannelPolicy
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method EventLogPolicyQuery.Get
- Method EventLogPolicyQuery.GetMany
Accepted by parameters
- Method EventLogPolicyWriter.Set
Constructors
public EventLogChannelPolicy() #Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String LogName { get; set; } #Event log channel name (e.g., Application, System, Microsoft-Windows-.../Operational).
public String ComputerName { get; set; } #Computer associated with the policy (null for local).
public Nullable<Boolean> IsEnabled { get; set; } #Whether the channel is enabled.
public Nullable<Int64> MaximumSizeInBytes { get; set; } #Maximum file size for the channel.
public String LogFilePath { get; set; } #Path to the channel log file.
public String Mode { get; set; } #Retention mode (Circular, Retain, AutoBackup).
public String SecurityDescriptor { get; set; } #Security descriptor (SDDL) for the channel.