EventLogConfiguration 建構函式

定義

初始化新的 EventLogConfiguration 物件。Initializes a new EventLogConfiguration object.

多載

EventLogConfiguration(String)

藉由指定要取得資訊和組態設定的本機事件記錄檔,初始化新的 EventLogConfiguration 物件。Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings.

EventLogConfiguration(String, EventLogSession)

藉由指定要取得資訊和組態設定的記錄檔名稱,初始化新的 EventLogConfiguration 物件。Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. 根據指定的事件記錄工作階段,記錄檔可以位於本機電腦或遠端電腦。The log can be on the local computer or a remote computer, based on the event log session specified.

EventLogConfiguration(String)

藉由指定要取得資訊和組態設定的本機事件記錄檔,初始化新的 EventLogConfiguration 物件。Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings.

public:
 EventLogConfiguration(System::String ^ logName);
public EventLogConfiguration (string logName);
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
Public Sub New (logName As String)

參數

logName
String

要取得資訊和組態設定的本機事件記錄檔名稱。The name of the local event log for which to get information and configuration settings.

另請參閱

EventLogConfiguration(String, EventLogSession)

藉由指定要取得資訊和組態設定的記錄檔名稱,初始化新的 EventLogConfiguration 物件。Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. 根據指定的事件記錄工作階段,記錄檔可以位於本機電腦或遠端電腦。The log can be on the local computer or a remote computer, based on the event log session specified.

public:
 EventLogConfiguration(System::String ^ logName, System::Diagnostics::Eventing::Reader::EventLogSession ^ session);
[System.Security.SecurityCritical]
public EventLogConfiguration (string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string * System.Diagnostics.Eventing.Reader.EventLogSession -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
Public Sub New (logName As String, session As EventLogSession)

參數

logName
String

要取得資訊和組態設定的事件記錄檔名稱。The name of the event log for which to get information and configuration settings.

session
EventLogSession

事件記錄工作階段,用來判斷指定的記錄所屬的事件記錄服務。The event log session used to determine the event log service that the specified log belongs to. 工作階段會連接到本機電腦或遠端電腦上的事件記錄服務。The session is either connected to the event log service on the local computer or a remote computer.

屬性

另請參閱

適用於