RequestBlockSleep Property

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

Gets or sets a value that indicates whether the system is required to be in the working state.

Namespace:  Microsoft.SDK.Samples.VistaBridge.Library.PowerManagement
Assembly:  VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public static bool RequestBlockSleep { get; set; }
Visual Basic (Declaration)
Public Shared Property RequestBlockSleep As Boolean
Visual C++
public:
static property bool RequestBlockSleep {
	bool get ();
	void set (bool value);
}

Field Value

A Boolean value.

Permissions

PermissionDescription
System.Security.Permissions..::.SecurityPermission to set this property. Demand value: Demand; Named Permission Sets: FullTrust.

Exceptions

ExceptionCondition
System..::.PlatformNotSupportedExceptionRequires XP/Windows Server 2003 or higher.
System.Security..::.SecurityExceptionThe caller does not have sufficient privileges to set this property.

See Also