EventLogSession.GetLogInformation(String, PathType) EventLogSession.GetLogInformation(String, PathType) EventLogSession.GetLogInformation(String, PathType) Method

定義

取得物件,這個物件包含指定之事件記錄檔的執行階段資訊。Gets an object that contains runtime information for the specified event log.

public:
 System::Diagnostics::Eventing::Reader::EventLogInformation ^ GetLogInformation(System::String ^ logName, System::Diagnostics::Eventing::Reader::PathType pathType);
public System.Diagnostics.Eventing.Reader.EventLogInformation GetLogInformation (string logName, System.Diagnostics.Eventing.Reader.PathType pathType);
member this.GetLogInformation : string * System.Diagnostics.Eventing.Reader.PathType -> System.Diagnostics.Eventing.Reader.EventLogInformation

參數

logName
String String String

要取得資訊的事件記錄檔名稱或路徑。The name of the event log to get information about, or the path to the event log file to get information about.

pathType
PathType PathType PathType

指定用於路徑參數的字串是否會指定事件記錄名稱或事件記錄檔路徑。Specifies whether the string used in the path parameter specifies the name of an event log, or the path to an event log file.

傳回

物件,這個物件包含指定的記錄檔相關資訊。An object that contains information about the specified log.

適用於

另請參閱