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

パスのパラメーターで使用する文字列でイベント ログの名前またはイベント ログ ファイルのパスを指定するかどうかを指定します。

戻り値

指定したログに関する情報が格納されたオブジェクトです。

適用対象

こちらもご覧ください