ObjectGetOptions 类

定义

指定用于获取管理对象的选项。Specifies options for getting a management object.

public ref class ObjectGetOptions : System::Management::ManagementOptions
public class ObjectGetOptions : System.Management.ManagementOptions
type ObjectGetOptions = class
    inherit ManagementOptions
Public Class ObjectGetOptions
Inherits ManagementOptions
继承
ObjectGetOptions

构造函数

ObjectGetOptions()

使用默认值,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using default values. 这是无参数构造函数。This is the parameterless constructor.

ObjectGetOptions(ManagementNamedValueCollection)

使用指定的提供程序特定的上下文,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using the specified provider-specific context.

ObjectGetOptions(ManagementNamedValueCollection, TimeSpan, Boolean)

使用给定的选项值,为获取 WMI 对象初始化 ObjectGetOptions 类的新实例。Initializes a new instance of the ObjectGetOptions class for getting a WMI object, using the given options values.

属性

Context

获取或设置一个 WMI 上下文对象。Gets or sets a WMI context object. 这是将传递给 WMI 提供程序的名称-值对列表,该提供程序支持自定义操作的上下文信息。This is a name-value pairs list to be passed through to a WMI provider that supports context information for customized operation.

(继承自 ManagementOptions)
Timeout

获取或设置要应用于该操作的超时。Gets or sets the time-out to apply to the operation. 注意,对于返回集合的操作,此超时将通过结果集合(而不是操作本身)应用于枚举(对于后面一种情况,应使用 ReturnImmediately 属性)。Note that for operations that return collections, this time-out applies to the enumeration through the resulting collection, not the operation itself (the ReturnImmediately property is used for the latter). 此属性用来指示将以半同步方式执行操作。This property is used to indicate that the operation should be performed semi-synchronously.

(继承自 ManagementOptions)
UseAmendedQualifiers

获取或设置一个值,该值指示从 WMI 返回的对象是否应包含已修正信息。Gets or sets a value indicating whether the objects returned from WMI should contain amended information. 通常,已修正信息就是附加在 WMI 对象上的可本地化信息,如对象和属性说明。Typically, amended information is localizable information attached to the WMI object, such as object and property descriptions.

方法

Clone()

返回对象的一个副本。Returns a copy of the object.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于