Modifica

Condividi tramite


PutOptions Constructors

Definition

Initializes a new instance of the PutOptions class.

Overloads

PutOptions()

Initializes a new instance of the PutOptions class for put operations, using default values. This is the parameterless constructor.

PutOptions(ManagementNamedValueCollection)

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

PutOptions(ManagementNamedValueCollection, TimeSpan, Boolean, PutType)

Initializes a new instance of the PutOptions class for committing a WMI object, using the specified option values.

PutOptions()

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

Initializes a new instance of the PutOptions class for put operations, using default values. This is the parameterless constructor.

public:
 PutOptions();
public PutOptions ();
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

PutOptions(ManagementNamedValueCollection)

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

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

public:
 PutOptions(System::Management::ManagementNamedValueCollection ^ context);
public PutOptions (System.Management.ManagementNamedValueCollection context);
new System.Management.PutOptions : System.Management.ManagementNamedValueCollection -> System.Management.PutOptions
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

PutOptions(ManagementNamedValueCollection, TimeSpan, Boolean, PutType)

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

Initializes a new instance of the PutOptions class for committing a WMI object, using the specified option values.

public:
 PutOptions(System::Management::ManagementNamedValueCollection ^ context, TimeSpan timeout, bool useAmendedQualifiers, System::Management::PutType putType);
public PutOptions (System.Management.ManagementNamedValueCollection context, TimeSpan timeout, bool useAmendedQualifiers, System.Management.PutType putType);
new System.Management.PutOptions : System.Management.ManagementNamedValueCollection * TimeSpan * bool * System.Management.PutType -> System.Management.PutOptions
Public Sub New (context As ManagementNamedValueCollection, timeout As TimeSpan, useAmendedQualifiers As Boolean, putType As PutType)

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 is TimeSpan.MaxValue.

useAmendedQualifiers
Boolean

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

putType
PutType

The type of commit to be performed (update or create).

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