API Reference
WmiOptions
Optional per-call configuration for WMI queries.
Inheritance
- Object
- WmiOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method WmiOptions.FromTimeout
Accepted by parameters
- Method CimWmiClient.Query
- Method CimWmiClient.QueryAsync
- Method CimWmiClient.QuerySingleAsync``1
- Method CimWmiClient.QuerySingle``1
- Method HybridWmiClient.Query
- Method HybridWmiClient.QueryAsync
- Method HybridWmiClient.QuerySingleAsync``1
- Method HybridWmiClient.QuerySingle``1
- Method IWmiClient.Query
- Method IWmiClient.QueryAsync
- Method IWmiClient.QuerySingleAsync``1
- Method IWmiClient.QuerySingle``1
- Method WmiClient.Query
- Method WmiClient.QueryAsync
- Method WmiClient.QuerySingleAsync``1
- Method WmiClient.QuerySingle``1
- Method WmiReader.QueryRows
- Method WmiReader.QueryRowsAsync
- Method WmiReader.ReadArrayOrEmptyAsync
- Method WmiReader.ReadArrayOrEmptyAsync``1
- Method WmiReader.ReadArrayOrEmpty``1
- Method WmiReader.ReadPropertyAsync
- Method WmiReader.ReadPropertyAsync``1
- Method WmiReader.ReadProperty``1
Constructors
public WmiOptions() #Methods
public static WmiOptions FromTimeout(Nullable<TimeSpan> timeout) #WmiOptionsCreates a WmiOptions instance when a timeout is provided; otherwise returns null.
Parameters
- timeout System.Nullable{System.TimeSpan}
- The timeout to apply to the query.
Returns
A configured WmiOptions or null when no timeout is specified.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Nullable<TimeSpan> Timeout { get; set; } #Overrides the default query timeout for a single call.
public NetworkCredential Credential { get; set; } #Optional credential for remote WMI/CIM connections. When specified and supported by the client, the implementation should authenticate using this identity.
public Nullable<Boolean> RequirePacketPrivacy { get; set; } #Optional authentication options for advanced scenarios (e.g., packet privacy). Placeholder for future expansion.
public Nullable<AuthenticationLevel> Authentication { get; set; } #Optional explicit WMI authentication level for classic WMI (DCOM) connections. When set, this takes precedence over RequirePacketPrivacy.
public Nullable<ImpersonationLevel> Impersonation { get; set; } #Optional explicit WMI impersonation level for classic WMI (DCOM) connections.
public Nullable<Boolean> PreferCimFirst { get; set; } #Prefer CIM (WS-Man) first when true; otherwise prefer classic WMI (DCOM). Defaults to implementation behavior.