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

指定路径参数中使用的字符串是否指定事件日志的名称或事件日志文件的路径。

返回

一个对象,该对象包含有关指定日志的信息。

适用于

另请参阅