Share via


SystemState.CheckBoolean Method

Applies To: Windows 8.1

Retrieves whether or not the specified system setting is enabled.

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

Usage

'Usage
Dim instance As SystemState
Dim setting As SystemSetting
Dim returnValue As Boolean

returnValue = instance.CheckBoolean(setting)

Syntax

'Declaration
Public Function CheckBoolean ( _
    setting As SystemSetting _
) As Boolean
public bool CheckBoolean (
    SystemSetting setting
)
public:
bool CheckBoolean (
    SystemSetting setting
)
public boolean CheckBoolean (
    SystemSetting setting
)
public function CheckBoolean (
    setting : SystemSetting
) : boolean

Parameters

  • setting
    The SystemSetting enumerator specifying which system setting to check. The enumerator must have the SystemSettingFlagGetBool bit set in it.

Return Value

Returns Boolean.

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