EventLogSession.GetLogNames 方法

定义

获取向事件日志服务注册的所有事件日志名称的可枚举集合。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();
public System.Collections.Generic.IEnumerable<string> GetLogNames ();
[System.Security.SecurityCritical]
public System.Collections.Generic.IEnumerable<string> GetLogNames ();
member this.GetLogNames : unit -> seq<string>
[<System.Security.SecurityCritical>]
member this.GetLogNames : unit -> seq<string>
Public Function GetLogNames () As IEnumerable(Of String)

返回

IEnumerable<String>

包含事件日志名称的字符串的可枚举集合。An enumerable collection of strings that contain the event log names.

属性

适用于