-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathIWmiQueryable.cs
More file actions
45 lines (44 loc) · 1.66 KB
/
IWmiQueryable.cs
File metadata and controls
45 lines (44 loc) · 1.66 KB
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
namespace BytecodeApi.Wmi;
/// <summary>
/// Provides functionality to evaluate queries against WMI classes.
/// </summary>
public interface IWmiQueryable
{
/// <summary>
/// Specifies what columns to read from the WMI class. By default, all columns are read.
/// </summary>
/// <param name="columns">A <see cref="string" />[] specifying what columns to read from the WMI class.</param>
/// <returns>
/// The query with the additional SELECT statement.
/// </returns>
IWmiQueryable Select(params string[] columns);
/// <summary>
/// Specifies a filter condition for the WMI WHERE clause.
/// </summary>
/// <param name="condition">A statement for the WMI WHERE clause.</param>
/// <returns>
/// The query with the additional WHERE statement.
/// </returns>
IWmiQueryable Where(string condition);
/// <summary>
/// Executes this query and reads the contents from the WMI class.
/// </summary>
/// <returns>
/// A new <see cref="WmiObject" />[] with the contents from the WMI class.
/// </returns>
WmiObject[] ToArray();
/// <summary>
/// Executes this query and reads the first element from the WMI class.
/// </summary>
/// <returns>
/// A new <see cref="WmiObject" /> with the first element from the WMI class.
/// </returns>
WmiObject First();
/// <summary>
/// Executes this query and reads the first element from the WMI class, and returns <see langword="null" />, if the query returned no elements.
/// </summary>
/// <returns>
/// A new <see cref="WmiObject" /> with the first element from the WMI class, or <see langword="null" />, if the query returned no elements.
/// </returns>
WmiObject? FirstOrDefault();
}