SystemUpdateManager.BlockAutomaticRebootAsync(String) Method

Definition

Block automatic reboots for update until UnblockAutomaticRebootAsync is called or until reboot is enforced by system policy.

public:
 static IAsyncOperation<bool> ^ BlockAutomaticRebootAsync(Platform::String ^ lockId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> BlockAutomaticRebootAsync(winrt::hstring const& lockId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> BlockAutomaticRebootAsync(string lockId);
function blockAutomaticRebootAsync(lockId)
Public Shared Function BlockAutomaticRebootAsync (lockId As String) As IAsyncOperation(Of Boolean)

Parameters

lockId
String

Platform::String

winrt::hstring

Identifier consisting of A-Z,a-z,0-9. Use Guid.NewGuid.ToString() to generate a new random id.

Returns

Attributes

Applies to