SystemState.RestoreAll Method

Applies To: Windows 8.1

Restores all system settings originally modified through SetBoolean back to their original values.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As SystemState

instance.RestoreAll

Syntax

'Declaration
Public Sub RestoreAll
public void RestoreAll ()
public:
void RestoreAll ()
public void RestoreAll ()
public function RestoreAll ()

Remarks

When an assessment calls ManageSystemState, a state file is created that stores any SystemSetting values that are modified by SetBoolean. This method restores the original settings as stored in the state file. If an assessment modifies a system setting manually, without using SetBoolean, this method will not restore the original value because it will not have been stored in the state file.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

SystemState Class
SystemState Members
Microsoft.Assessments.Runtime Namespace