EventLogSession.GetLogNames EventLogSession.GetLogNames EventLogSession.GetLogNames EventLogSession.GetLogNames Method

定義

取得可列舉的集合,包含已在事件記錄服務中註冊的所有事件記錄檔名稱。Gets an enumerable collection of all the event log names that are registered with the Event Log service.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ GetLogNames();
[System.Security.SecurityCritical]
public System.Collections.Generic.IEnumerable<string> GetLogNames ();
member this.GetLogNames : unit -> seq<string>
Public Function GetLogNames () As IEnumerable(Of String)

傳回

可列舉的字串集合,這些字串包含事件記錄檔名稱。An enumerable collection of strings that contain the event log names.

適用於

另請參閱