Dela via


BrightnessOverride.SaveForSystemAsync(BrightnessOverride) Method

Definition

Saves the specified brightness override settings by committing these values to user settings. Use this method to persist the override settings after overriding stops. If null is passed for value, then the system turns on auto-brightness.

public:
 static IAsyncOperation<bool> ^ SaveForSystemAsync(BrightnessOverride ^ value);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> SaveForSystemAsync(BrightnessOverride const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> SaveForSystemAsync(BrightnessOverride value);
function saveForSystemAsync(value)
Public Shared Function SaveForSystemAsync (value As BrightnessOverride) As IAsyncOperation(Of Boolean)

Parameters

value
BrightnessOverride

A brightness override object; or null to turn on auto-brightness.

Returns

Boolean value to indicate whether the operation is successful or not.

Attributes

Remarks

Requires the systemManagement capability to be declared in your app's package manifest. That capability allows apps to have basic system administration privileges. If it isn't declared, then this method throws an access is denied exception. For more info, see App capability declarations.

Applies to