Share via


ObjectGetOptions 构造函数

定义

初始化使用 WMI 对象 ObjectGetOptions 类的新实例。

重载

ObjectGetOptions()

使用默认值,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。 这是无参数构造函数。

ObjectGetOptions(ManagementNamedValueCollection)

使用指定的提供程序特定的上下文,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。

ObjectGetOptions(ManagementNamedValueCollection, TimeSpan, Boolean)

使用给定的选项值,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。

ObjectGetOptions()

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

使用默认值,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。 这是无参数构造函数。

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

注解

.NET Framework 安全性

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

适用于

ObjectGetOptions(ManagementNamedValueCollection)

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

使用指定的提供程序特定的上下文,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。

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)

参数

context
ManagementNamedValueCollection

要传递给提供程序的、提供程序特定的名称-值对上下文对象。

注解

.NET Framework 安全性

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

适用于

ObjectGetOptions(ManagementNamedValueCollection, TimeSpan, Boolean)

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

使用给定的选项值,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。

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)

参数

context
ManagementNamedValueCollection

要传递给提供程序的、提供程序特定的名称-值对上下文对象。

timeout
TimeSpan

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

useAmendedQualifiers
Boolean

如果返回的对象应包含已修正的(可识别区域设置的)限定符,则为 true;否则为 false

注解

.NET Framework 安全性

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

适用于