WqlEventQuery.GroupWithinInterval プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WqlEventQuery.GroupWithinInterval プロパティの意味・解説 

WqlEventQuery.GroupWithinInterval プロパティ

同じ種類イベントグループ化するために使用する間隔取得または設定します

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Property GroupWithinInterval As
 TimeSpan
Dim instance As WqlEventQuery
Dim value As TimeSpan

value = instance.GroupWithinInterval

instance.GroupWithinInterval = value
public TimeSpan GroupWithinInterval { get;
 set; }
public:
property TimeSpan GroupWithinInterval {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_GroupWithinInterval ()

/** @property */
public void set_GroupWithinInterval (TimeSpan
 value)
public function get GroupWithinInterval
 () : TimeSpan

public function set GroupWithinInterval
 (value : TimeSpan)

プロパティ
同じ種類イベントグループ化するために使用する間隔格納している TimeSpan 値を返します

解説解説
使用例使用例

新しい 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;
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からWqlEventQuery.GroupWithinInterval プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWqlEventQuery.GroupWithinInterval プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWqlEventQuery.GroupWithinInterval プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

WqlEventQuery.GroupWithinInterval プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



WqlEventQuery.GroupWithinInterval プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS