次の方法で共有


Support.ManageSystemState Method

Applies To: Windows 8.1

Retrieves a SystemState interface that is bound to a file used to save and restore the system configuration.

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

Usage

'Usage
Dim instance As Support
Dim fileName As String
Dim returnValue As SystemState

returnValue = instance.ManageSystemState(fileName)

Syntax

'Declaration
Public Function ManageSystemState ( _
    fileName As String _
) As SystemState
public SystemState ManageSystemState (
    string fileName
)
public:
SystemState^ ManageSystemState (
    String^ fileName
)
public SystemState ManageSystemState (
    String fileName
)
public function ManageSystemState (
    fileName : String
) : SystemState

Parameters

  • fileName
    The name of the file used to save system settings modified through a call to SetBoolean.

Return Value

Returns SystemState.

Remarks

The SystemState enumeration defines items on a system that may be used by assessments. These settings can be read and modified. The original values of modified settings are saved in the fileName file. The system state can be restored by calling RestoreAll to reverse any configuration changes made through SetBoolean. Any changes made by manually modifying underlying OS structures are not stored. This method binds the SystemStateinterface to a specific filename where the modified settings will be stored.

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

Support Class
Support Members
Microsoft.Assessments.Runtime Namespace