你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ManagementLocksOperationsExtensions.CreateOrUpdateByScopeAsync 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.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Internal.Resources.Models.ManagementLockObject> CreateOrUpdateByScopeAsync (this Microsoft.Azure.Management.Internal.Resources.IManagementLocksOperations operations, string scope, string lockName, Microsoft.Azure.Management.Internal.Resources.Models.ManagementLockObject parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateByScopeAsync : Microsoft.Azure.Management.Internal.Resources.IManagementLocksOperations * string * string * Microsoft.Azure.Management.Internal.Resources.Models.ManagementLockObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Internal.Resources.Models.ManagementLockObject>
<Extension()>
Public Function CreateOrUpdateByScopeAsync (operations As IManagementLocksOperations, scope As String, lockName As String, parameters As ManagementLockObject, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagementLockObject)
Parameters
- operations
- IManagementLocksOperations
- scope
- String
- lockName
- String
- parameters
- ManagementLockObject
- cancellationToken
- CancellationToken