API Reference
WmiOptions
Optional per-call configuration for WMI queries.
Inheritance
- Object
- WmiOptions
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.