API Reference
Class
CimData
Lightweight wrapper that mimics a simple Get-CimData experience. Uses the hybrid CIM/WMI client under the hood and returns raw row dictionaries.
Inheritance
- Object
- CimData
Methods
public static IReadOnlyList<WmiRow> Get(String computer, String class, String ns = null, CancellationToken ct = null) #Returns:
IReadOnlyList<WmiRow>Gets all instances of a CIM/WMI class on the specified computer.
Parameters
- computer System.String
- Target computer name or IP.
- class System.String
- Class name (for example, Win32_OperatingSystem).
- ns System.String = null
- Namespace; defaults to root\cimv2 when null.
- ct System.Threading.CancellationToken = null
- Cancellation token.
public static Task<IReadOnlyList<WmiRow>> GetAsync(String computer, String class, String ns = null, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<IReadOnlyList<WmiRow>>Gets all instances of a CIM/WMI class asynchronously.
Parameters
- computer System.String
- Target computer name or IP.
- class System.String
- Class name (for example, Win32_OperatingSystem).
- ns System.String = null
- Namespace; defaults to root\cimv2 when null.
- timeout System.Nullable{System.TimeSpan} = null
- Optional per-query timeout.
- ct System.Threading.CancellationToken = null
- Cancellation token.
public static async Task<IReadOnlyDictionary<String, IReadOnlyList<WmiRow>>> GetManyAsync(IEnumerable<String> computers, String class, String ns = null, Int32 maxConcurrency = 8, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<IReadOnlyDictionary<String, IReadOnlyList<WmiRow>>>Queries a CIM/WMI class across many computers concurrently.
Parameters
- computers System.Collections.Generic.IEnumerable{System.String}
- Target computer names or IPs.
- class System.String
- Class name (for example, Win32_OperatingSystem).
- ns System.String = null
- Namespace; defaults to root\cimv2 when null.
- maxConcurrency System.Int32 = 8
- Maximum concurrent queries.
- timeout System.Nullable{System.TimeSpan} = null
- Optional per-query timeout.
- ct System.Threading.CancellationToken = null
- Cancellation token.
Returns
Map of computer name to row collection.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object