-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
EventQuery.xml
205 lines (178 loc) · 11.9 KB
/
EventQuery.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<Type Name="EventQuery" FullName="System.Management.EventQuery">
<TypeSignature Language="C#" Value="public class EventQuery : System.Management.ManagementQuery" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit EventQuery extends System.Management.ManagementQuery" />
<TypeSignature Language="DocId" Value="T:System.Management.EventQuery" />
<TypeSignature Language="VB.NET" Value="Public Class EventQuery
Inherits ManagementQuery" />
<TypeSignature Language="F#" Value="type EventQuery = class
 inherit ManagementQuery" />
<TypeSignature Language="C++ CLI" Value="public ref class EventQuery : System::Management::ManagementQuery" />
<AssemblyInfo>
<AssemblyName>System.Management</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Management.ManagementQuery</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents a WMI *event query*.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example shows how the client receives notification when an instance of **Win32_Process** is created because the event class is **__InstanceCreationEvent**. For more information, see the [Windows Management Instrumentation](/windows/desktop/wmisdk/wmi-start-page) documentation. The client receives events synchronously by calling the <xref:System.Management.ManagementEventWatcher.WaitForNextEvent%2A> method. This example can be tested by starting a process, such as Notepad, while the example code is running.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WindowsServer/wminet_EventQuery/cs/EventQuery.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WindowsServer/wminet_EventQuery/vb/EventQuery.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Management</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Management.EventQuery" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public EventQuery ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Management.EventQuery.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 EventQuery();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Management</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Management.EventQuery" /> class. This is the parameterless constructor.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## .NET Framework Security
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see [Using Libraries from Partially Trusted Code](/dotnet/framework/misc/using-libraries-from-partially-trusted-code).
## Examples
The following example shows how the client receives notification when an instance of **Win32_Process** is created because the event class is **__InstanceCreationEvent**. For more information, see the [Windows Management Instrumentation](/windows/desktop/wmisdk/wmi-start-page) documentation. The client receives events synchronously by calling the <xref:System.Management.ManagementEventWatcher.WaitForNextEvent%2A> method. This example can be tested by starting a process, such as Notepad, while the example code is running.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WindowsServer/wminet_EventQuery/cs/EventQuery.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WindowsServer/wminet_EventQuery/vb/EventQuery.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public EventQuery (string query);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string query) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Management.EventQuery.#ctor(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (query As String)" />
<MemberSignature Language="F#" Value="new System.Management.EventQuery : string -> System.Management.EventQuery" Usage="new System.Management.EventQuery query" />
<MemberSignature Language="C++ CLI" Value="public:
 EventQuery(System::String ^ query);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Management</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="query" Type="System.String" />
</Parameters>
<Docs>
<param name="query">A textual representation of the <c>event query</c>.</param>
<summary>Initializes a new instance of the <see cref="T:System.Management.EventQuery" /> class for the specified query.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## .NET Framework Security
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see [Using Libraries from Partially Trusted Code](/dotnet/framework/misc/using-libraries-from-partially-trusted-code).
## Examples
The following example shows how the client receives notification when an instance of **Win32_Process** is created because the event class is **__InstanceCreationEvent**. For more information, see the [Windows Management Instrumentation](/windows/desktop/wmisdk/wmi-start-page) documentation. The client receives events synchronously by calling the <xref:System.Management.ManagementEventWatcher.WaitForNextEvent%2A> method. This example can be tested by starting a process, such as Notepad, while the example code is running.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WindowsServer/wminet_EventQuery-1/cs/EventQuery-1.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WindowsServer/wminet_EventQuery-1/vb/EventQuery-1.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public EventQuery (string language, string query);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string language, string query) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Management.EventQuery.#ctor(System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (language As String, query As String)" />
<MemberSignature Language="F#" Value="new System.Management.EventQuery : string * string -> System.Management.EventQuery" Usage="new System.Management.EventQuery (language, query)" />
<MemberSignature Language="C++ CLI" Value="public:
 EventQuery(System::String ^ language, System::String ^ query);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Management</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="language" Type="System.String" />
<Parameter Name="query" Type="System.String" />
</Parameters>
<Docs>
<param name="language">The language in which the query string is specified.</param>
<param name="query">The string representation of the query.</param>
<summary>Initializes a new instance of the <see cref="T:System.Management.EventQuery" /> class for the specified language and query.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## .NET Framework Security
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see [Using Libraries from Partially Trusted Code](/dotnet/framework/misc/using-libraries-from-partially-trusted-code).
## Examples
The following example shows how the client receives notification when an instance of **Win32_Process** is created because the event class is **__InstanceCreationEvent**. For more information, see the [Windows Management Instrumentation](/windows/desktop/wmisdk/wmi-start-page) documentation. The client receives events synchronously by calling the <xref:System.Management.ManagementEventWatcher.WaitForNextEvent%2A> method. This example can be tested by starting a process, such as Notepad, while the example code is running.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WindowsServer/wminet_EventQuery-2/cs/EventQuery-2.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WindowsServer/wminet_EventQuery-2/vb/EventQuery-2.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Clone">
<MemberSignature Language="C#" Value="public override object Clone ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object Clone() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Management.EventQuery.Clone" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function Clone () As Object" />
<MemberSignature Language="F#" Value="override this.Clone : unit -> obj" Usage="eventQuery.Clone " />
<MemberSignature Language="C++ CLI" Value="public:
 override System::Object ^ Clone();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Management</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a copy of the object.</summary>
<returns>The cloned object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## .NET Framework Security
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see [Using Libraries from Partially Trusted Code](/dotnet/framework/misc/using-libraries-from-partially-trusted-code).
]]></format>
</remarks>
<altmember cref="M:System.ICloneable.Clone" />
</Docs>
</Member>
</Members>
</Type>