SystemUpdateManager.BlockAutomaticRebootAsync(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
阻止自动重启更新,直到调用 UnblockAutomaticRebootAsync 或系统策略强制重启。
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)
参数
- lockId
-
String
Platform::String
winrt::hstring
标识符由 A-Z、a-z、0-9 组成。 使用 Guid.NewGuid.ToString () 生成新的随机 ID。
返回
- 属性