EventLogSession.GetLogInformation(String, PathType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an object that contains runtime information for the specified event log.
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
Parameters
- logName
- String
The name of the event log to get information about, or the path to the event log file to get information about.
- pathType
- PathType
Specifies whether the string used in the path parameter specifies the name of an event log, or the path to an event log file.
Returns
An object that contains information about the specified log.
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET