EventLogSession.GetLogInformation(String, PathType) Metod

Definition

Hämtar ett objekt som innehåller körningsinformation för den angivna händelseloggen.

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

Parametrar

logName
String

Namnet på händelseloggen för att hämta information om eller sökvägen till händelseloggfilen för att få information om.

pathType
PathType

Anger om strängen som används i sökvägsparametern anger namnet på en händelselogg eller sökvägen till en händelseloggfil.

Returer

Ett objekt som innehåller information om den angivna loggen.

Gäller för

Se även