共用方式為


NetAppVolumeResource.BreakFileLocksAsync 方法

定義

中斷磁片區上的所有檔案鎖定

  • 要求路徑/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks
  • 作業IdVolumes_BreakFileLocks
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> BreakFileLocksAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.NetApp.Models.NetAppVolumeBreakFileLocksContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BreakFileLocksAsync : Azure.WaitUntil * Azure.ResourceManager.NetApp.Models.NetAppVolumeBreakFileLocksContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.BreakFileLocksAsync : Azure.WaitUntil * Azure.ResourceManager.NetApp.Models.NetAppVolumeBreakFileLocksContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function BreakFileLocksAsync (waitUntil As WaitUntil, Optional content As NetAppVolumeBreakFileLocksContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

參數

waitUntil
WaitUntil

Completed 如果 方法應該等候傳回,直到服務上長時間執行的作業完成為止; Started 如果它應該在啟動作業之後傳回,則為 。 如需長時間執行作業的詳細資訊,請參閱 Azure.Core Long-Running作業範例

content
NetAppVolumeBreakFileLocksContent

選擇性本文,可讓您使用選取的選項清除檔案鎖定。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

適用於