PurgeHealthState 方法 (SfcQueryExpression)
Removes the health data for a specified tree/subtree.
命名空間: Microsoft.SqlServer.Management.Dmf
組件: Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)
語法
'宣告
Public Sub PurgeHealthState ( _
targetTreeRoot As SfcQueryExpression _
)
'用途
Dim instance As PolicyStore
Dim targetTreeRoot As SfcQueryExpression
instance.PurgeHealthState(targetTreeRoot)
public void PurgeHealthState(
SfcQueryExpression targetTreeRoot
)
public:
void PurgeHealthState(
SfcQueryExpression^ targetTreeRoot
)
member PurgeHealthState :
targetTreeRoot:SfcQueryExpression -> unit
public function PurgeHealthState(
targetTreeRoot : SfcQueryExpression
)
參數
- targetTreeRoot
型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcQueryExpression
A T: Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression object.
備註
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.