Bearbeiten

Freigeben über


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();
public ObjectGetOptions ();
Public Sub New ()

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

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);
public ObjectGetOptions (System.Management.ManagementNamedValueCollection context);
new System.Management.ObjectGetOptions : System.Management.ManagementNamedValueCollection -> System.Management.ObjectGetOptions
Public Sub New (context As ManagementNamedValueCollection)

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

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);
public ObjectGetOptions (System.Management.ManagementNamedValueCollection context, TimeSpan timeout, bool useAmendedQualifiers);
new System.Management.ObjectGetOptions : System.Management.ManagementNamedValueCollection * TimeSpan * bool -> System.Management.ObjectGetOptions
Public Sub New (context As ManagementNamedValueCollection, timeout As TimeSpan, useAmendedQualifiers As Boolean)

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