ObjectGetOptions 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。
重载
| 名称 | 说明 |
|---|---|
| ObjectGetOptions() |
使用默认值初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。 这是无参数构造函数。 |
| ObjectGetOptions(ManagementNamedValueCollection) |
使用指定的提供程序特定的上下文初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。 |
| ObjectGetOptions(ManagementNamedValueCollection, TimeSpan, Boolean) |
使用给定的选项值初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。 |
ObjectGetOptions()
- Source:
- ManagementOptions.cs
- Source:
- ManagementOptions.cs
- Source:
- ManagementOptions.cs
- Source:
- ManagementOptions.cs
使用默认值初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。 这是无参数构造函数。
public:
ObjectGetOptions();
public ObjectGetOptions();
Public Sub New ()
注解
.NET Framework 安全性
直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库。
适用于
ObjectGetOptions(ManagementNamedValueCollection)
- Source:
- ManagementOptions.cs
- Source:
- ManagementOptions.cs
- Source:
- ManagementOptions.cs
- Source:
- ManagementOptions.cs
使用指定的提供程序特定的上下文初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。
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
- Source:
- ManagementOptions.cs
使用给定的选项值初始化类的新实例 ObjectGetOptions 以获取 WMI 对象。
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 安全性
直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库。