共用方式為


SystemUpdateManager.BlockAutomaticRebootAsync(String) 方法

定義

封鎖自動重新開機以進行更新,直到呼叫 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 () 來產生新的隨機識別碼。

傳回

屬性

適用於