ObjectGetOptions Constructors

Definition

Initializes a new instance of the ObjectGetOptions class for getting a WMI object.

Overloads

ObjectGetOptions()

Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using default values. This is the parameterless constructor.

ObjectGetOptions(ManagementNamedValueCollection)

Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using the specified provider-specific context.

ObjectGetOptions(ManagementNamedValueCollection, TimeSpan, Boolean)

Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using the given options values.

ObjectGetOptions()

Source:
ManagementOptions.cs
Source:
ManagementOptions.cs
Source:
ManagementOptions.cs

Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using default values. This is the parameterless constructor.

public ObjectGetOptions ();

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.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ObjectGetOptions(ManagementNamedValueCollection)

Source:
ManagementOptions.cs
Source:
ManagementOptions.cs
Source:
ManagementOptions.cs

Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using the specified provider-specific context.

public ObjectGetOptions (System.Management.ManagementNamedValueCollection context);

Parameters

context
ManagementNamedValueCollection

A provider-specific, named-value pairs context object to be passed through to the provider.

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.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ObjectGetOptions(ManagementNamedValueCollection, TimeSpan, Boolean)

Source:
ManagementOptions.cs
Source:
ManagementOptions.cs
Source:
ManagementOptions.cs

Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using the given options values.

public ObjectGetOptions (System.Management.ManagementNamedValueCollection context, TimeSpan timeout, bool useAmendedQualifiers);

Parameters

context
ManagementNamedValueCollection

A provider-specific, named-value pairs context object to be passed through to the provider.

timeout
TimeSpan

The length of time to let the operation perform before it times out. The default is TimeSpan.MaxValue.

useAmendedQualifiers
Boolean

true if the returned objects should contain amended (locale-aware) qualifiers; otherwise, false.

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.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)