你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagementLockOperationsExtensions.CreateOrUpdateAtSubscriptionLevelAsync 方法

定义

在订阅级别创建或更新管理锁。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ManagementLockReturnResult> CreateOrUpdateAtSubscriptionLevelAsync (this Microsoft.Azure.Management.Resources.IManagementLockOperations operations, string lockName, Microsoft.Azure.Management.Resources.Models.ManagementLockProperties parameters);
static member CreateOrUpdateAtSubscriptionLevelAsync : Microsoft.Azure.Management.Resources.IManagementLockOperations * string * Microsoft.Azure.Management.Resources.Models.ManagementLockProperties -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ManagementLockReturnResult>
<Extension()>
Public Function CreateOrUpdateAtSubscriptionLevelAsync (operations As IManagementLockOperations, lockName As String, parameters As ManagementLockProperties) As Task(Of ManagementLockReturnResult)

参数

operations
IManagementLockOperations

对 Microsoft.Azure.Management.Resources.IManagementLockOperations 的引用。

lockName
String

必需。 锁的名称。

parameters
ManagementLockProperties

必需。 管理锁参数。

返回

管理锁信息。

适用于