EventLogSession.GetLogInformation(String, PathType) 方法

定義

取得物件,這個物件包含指定之事件記錄檔的執行階段資訊。

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

指定用於路徑參數的字串是否會指定事件記錄名稱或事件記錄檔路徑。

傳回

物件,這個物件包含指定的記錄檔相關資訊。

適用於

另請參閱