API Reference
Class
EventLogPolicyQuery
Reads Windows Event Log channel policy using EventViewerX utilities.
Inheritance
- Object
- EventLogPolicyQuery
Methods
public static EventLogChannelPolicy Get(String computer, String logName) #Returns:
EventLogChannelPolicyGets policy for a single channel.
Parameters
- computer System.String
- logName System.String
public static EventLogChannelDetails GetDetails(String computer, String logName, Int32 timeoutMs = 3000) #Returns:
EventLogChannelDetailsGets detailed policy and runtime information for a single channel.
Parameters
- computer System.String
- logName System.String
- timeoutMs System.Int32 = 3000
public static EventLogChannelDetailsResult GetDetailsResult(String computer, String logName, Int32 timeoutMs = 3000) #Returns:
EventLogChannelDetailsResultGets detailed policy and runtime information for a single channel, including diagnostic status on failure.
Parameters
- computer System.String
- logName System.String
- timeoutMs System.Int32 = 3000
public static IEnumerable<EventLogChannelPolicy> GetMany(String computer, params String[] logNames) #Returns:
IEnumerable<EventLogChannelPolicy>Gets policies for multiple channels.
Parameters
- computer System.String
- logNames System.String[]
public static IEnumerable<EventLogChannelDetails> GetManyDetails(String computer, Int32 timeoutMs = 3000, params String[] logNames) #Returns:
IEnumerable<EventLogChannelDetails>Gets detailed policy and runtime information for multiple channels.
Parameters
- computer System.String
- timeoutMs System.Int32 = 3000
- logNames System.String[]
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object