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
指定路径参数中使用的字符串是否指定事件日志的名称或事件日志文件的路径。
返回
一个对象,该对象包含有关指定日志的信息。