WqlEventQuery.GroupByPropertyList プロパティ
アセンブリ: System.Management (system.management.dll 内)

Dim instance As WqlEventQuery Dim value As StringCollection value = instance.GroupByPropertyList instance.GroupByPropertyList = value
public: property StringCollection^ GroupByPropertyList { StringCollection^ get (); void set (StringCollection^ value); }
/** @property */ public StringCollection get_GroupByPropertyList () /** @property */ public void set_GroupByPropertyList (StringCollection value)
public function get GroupByPropertyList () : StringCollection public function set GroupByPropertyList (value : StringCollection)
同じ種類のイベントをグループ化するために使用するイベントのプロパティを格納している StringCollection を返します。

このプロパティ値を設定すると、それまでにオブジェクトに格納された値をすべてオーバーライドします。クエリ文字列は新しいグループ化を反映するようにリビルドされます。
プロパティ値.NET Framework のセキュリティ

新しい WqlEventQuery を初期化して、イベント クエリ文字列を表示する例を次に示します。
Imports System Imports System.Management Public Class EventSample Public Overloads Shared Function _ Main(ByVal args() As String) As Integer Dim query As New WqlEventQuery query.EventClassName = "__InstanceCreationEvent" query.Condition = "TargetInstance ISA 'Win32_NTLogEvent'" query.GroupWithinInterval = New TimeSpan(0, 0, 10) Dim collection As New System.Collections.Specialized. _ StringCollection collection.Add("TargetInstance.SourceName") query.GroupByPropertyList = collection query.HavingCondition = "NumberOfEvents > 25" MessageBox.Show(query.QueryString) End Function 'Main End Class 'EventSample
using System; using System.Management; public class EventSample { public static void Main(string[] args) { WqlEventQuery query = new WqlEventQuery(); query.EventClassName = "__InstanceCreationEvent"; query.Condition = "TargetInstance ISA 'Win32_NTLogEvent'"; query.GroupWithinInterval = new TimeSpan(0, 0, 10); System.Collections.Specialized.StringCollection collection = new System.Collections.Specialized.StringCollection(); collection.Add("TargetInstance.SourceName"); query.GroupByPropertyList = collection; query.HavingCondition = "NumberOfEvents > 25"; Console.WriteLine(query.QueryString); return; } }


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からWqlEventQuery.GroupByPropertyList プロパティを検索する場合は、下記のリンクをクリックしてください。

- WqlEventQuery.GroupByPropertyList プロパティのページへのリンク