ManagementConfigurationAttribute.Mode 属性

定义

获取或设置该属性的模式,该模式指定是否尽快应用对属性的更改或在何时调用提交方法。Gets or sets the mode of the property, which specifies whether changes to it are applied as soon as possible or when a commit method is called.

public:
 property System::Management::Instrumentation::ManagementConfigurationType Mode { System::Management::Instrumentation::ManagementConfigurationType get(); void set(System::Management::Instrumentation::ManagementConfigurationType value); };
public System.Management.Instrumentation.ManagementConfigurationType Mode { get; set; }
member this.Mode : System.Management.Instrumentation.ManagementConfigurationType with get, set
Public Property Mode As ManagementConfigurationType

属性值

ManagementConfigurationType

返回一个 ManagementConfigurationType,它指示该 WMI 属性是使用 Apply 模式,还是使用 OnCommit 模式。Returns a ManagementConfigurationType that indicates whether the WMI property uses Apply or OnCommit mode.

注解

如果定义了 commit 方法,则负责更新使用该模式的所有读写 WMI 属性 OnCommitIf there is a commit method defined, it is responsible for updating all read-write WMI properties that use the OnCommit mode. 它由标识 ManagementCommitAttributeIt is identified by the ManagementCommitAttribute.

适用于