EventLogSession.GetLogInformation(String, PathType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件,這個物件包含指定之事件記錄檔的執行階段資訊。
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
Public Function GetLogInformation (logName As String, pathType As PathType) As EventLogInformation
參數
- logName
- String
要取得資訊的事件記錄檔名稱或路徑。
- pathType
- PathType
指定用於路徑參數的字串是否會指定事件記錄名稱或事件記錄檔路徑。
傳回
物件,這個物件包含指定的記錄檔相關資訊。