SystemUpdateManager.BlockAutomaticRebootAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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