共用方式為


CSMProtectionPolicyOperationsExtensions.AddAsync 方法

定義

建立新的保護原則。

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> AddAsync (this Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations operations, string resourceGroupName, string resourceName, string policyName, Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest cSMAddProtectionPolicyRequest, Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders customRequestHeaders);
static member AddAsync : Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations * string * string * string * Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function AddAsync (operations As ICSMProtectionPolicyOperations, resourceGroupName As String, resourceName As String, policyName As String, cSMAddProtectionPolicyRequest As CSMAddProtectionPolicyRequest, customRequestHeaders As CustomRequestHeaders) As Task(Of AzureOperationResponse)

參數

operations
ICSMProtectionPolicyOperations

Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations 的參考。

resourceGroupName
String

必要。

resourceName
String

必要。

policyName
String

必要。 要更新的保護原則名稱。

cSMAddProtectionPolicyRequest
CSMAddProtectionPolicyRequest

必要。 保護原則建立要求。

customRequestHeaders
CustomRequestHeaders

選擇性。 要求標頭參數。

傳回

Task<Microsoft.Azure.AzureOperationResponse>

標準的服務回應,包括 HTTP 狀態碼和要求識別碼。

適用於