PutOptions 构造函数

定义

初始化 PutOptions 类的新实例。

重载

名称 说明
PutOptions()

使用默认值初始化类的新实例 PutOptions 以执行 put 操作。 这是无参数构造函数。

PutOptions(ManagementNamedValueCollection)

使用指定的提供程序特定的上下文初始化类的新实例 PutOptions ,以提交 WMI 对象。

PutOptions(ManagementNamedValueCollection, TimeSpan, Boolean, PutType)

使用指定的选项值初始化类的新实例 PutOptions 以提交 WMI 对象。

PutOptions()

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

使用默认值初始化类的新实例 PutOptions 以执行 put 操作。 这是无参数构造函数。

public:
 PutOptions();
public PutOptions();
Public Sub New ()

注解

.NET Framework 安全性

直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库

适用于

PutOptions(ManagementNamedValueCollection)

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

使用指定的提供程序特定的上下文初始化类的新实例 PutOptions ,以提交 WMI 对象。

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)

参数

context
ManagementNamedValueCollection

要传递给提供程序的特定于提供程序的命名值对上下文对象。

注解

.NET Framework 安全性

直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库

适用于

PutOptions(ManagementNamedValueCollection, TimeSpan, Boolean, PutType)

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

使用指定的选项值初始化类的新实例 PutOptions 以提交 WMI 对象。

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)

参数

context
ManagementNamedValueCollection

要传递给提供程序的特定于提供程序的命名值对对象。

timeout
TimeSpan

让操作在超时之前执行的时间长度。默认值为 TimeSpan.MaxValue

useAmendedQualifiers
Boolean

true 如果返回的对象应包含修订的(区域设置感知)限定符,则为 ;否则,为 false.

putType
PutType

要执行的提交类型(更新或创建)。

注解

.NET Framework 安全性

直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库

适用于