PurgeHealthState 方法

Removes the health data for a specified tree/subtree.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
Public Sub PurgeHealthState
用法
Dim instance As PolicyStore

instance.PurgeHealthState()
public void PurgeHealthState()
public:
void PurgeHealthState()
member PurgeHealthState : unit -> unit 
public function PurgeHealthState()

注释

Results of failed local policies can be displayed for affected objects by using the toggle (scroll with a white cross in small red circle icon). This displays the icon in the tree, so an admin can see what objects are out of compliance and investigate the cause. There are certain situations when it is desirable to refresh the state, for example, when a corrective action has been applied and the admin doesn't want to wait till the next scheduled run.