本文整理汇总了VB.NET中System.Management.WqlEventQuery.GroupWithinInterval属性的典型用法代码示例。如果您正苦于以下问题:VB.NET WqlEventQuery.GroupWithinInterval属性的具体用法?VB.NET WqlEventQuery.GroupWithinInterval怎么用?VB.NET WqlEventQuery.GroupWithinInterval使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。
在下文中一共展示了WqlEventQuery.GroupWithinInterval属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: EventSample
' 导入命名空间
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