DeleteOptions Constructors

Definition

Initializes a new instance of the DeleteOptions class for the delete operation.

Overloads

DeleteOptions()

Initializes a new instance of the DeleteOptions class for the delete operation, using default values. This is the parameterless constructor.

DeleteOptions(ManagementNamedValueCollection, TimeSpan)

Initializes a new instance of the DeleteOptions class for a delete operation, using the specified values.

DeleteOptions()

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

Initializes a new instance of the DeleteOptions class for the delete operation, using default values. This is the parameterless constructor.

public DeleteOptions ();

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) og andre versjoner
Produkt Versjoner
.NET 6 (package-provided), 7 (package-provided), 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)

DeleteOptions(ManagementNamedValueCollection, TimeSpan)

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

Initializes a new instance of the DeleteOptions class for a delete operation, using the specified values.

public DeleteOptions (System.Management.ManagementNamedValueCollection context, TimeSpan timeout);

Parameters

context
ManagementNamedValueCollection

A provider-specific, named-value pairs 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 value is TimeSpan.MaxValue. Setting this parameter will invoke the operation semisynchronously.

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) og andre versjoner
Produkt Versjoner
.NET 6 (package-provided), 7 (package-provided), 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)