ObjectGetOptions Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ObjectGetOptions class for getting a WMI object.
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. |
- 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
.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) |
- 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
.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) |
- 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
.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) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: