共用方式為


ScheduleOperationsExtensions.CreateOrUpdateAsync 方法

定義

多載

CreateOrUpdateAsync(IScheduleOperations, String, String, ScheduleCreateOrUpdateParameters)
CreateOrUpdateAsync(IScheduleOperations, String, String, String, ScheduleCreateOrUpdateParameters, CancellationToken)

建立排程。 http://aka.ms/azureautomationsdk/scheduleoperations

CreateOrUpdateAsync(IScheduleOperations, String, String, ScheduleCreateOrUpdateParameters)

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.ScheduleCreateOrUpdateResponse> CreateOrUpdateAsync (this Microsoft.Azure.Management.Automation.IScheduleOperations operations, string resourceGroupName, string automationAccount, Microsoft.Azure.Management.Automation.Models.ScheduleCreateOrUpdateParameters parameters);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IScheduleOperations * string * string * Microsoft.Azure.Management.Automation.Models.ScheduleCreateOrUpdateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.ScheduleCreateOrUpdateResponse>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IScheduleOperations, resourceGroupName As String, automationAccount As String, parameters As ScheduleCreateOrUpdateParameters) As Task(Of ScheduleCreateOrUpdateResponse)

參數

operations
IScheduleOperations
resourceGroupName
String
automationAccount
String

傳回

適用於

CreateOrUpdateAsync(IScheduleOperations, String, String, String, ScheduleCreateOrUpdateParameters, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Schedule> CreateOrUpdateAsync (this Microsoft.Azure.Management.Automation.IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, Microsoft.Azure.Management.Automation.Models.ScheduleCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IScheduleOperations * string * string * string * Microsoft.Azure.Management.Automation.Models.ScheduleCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Schedule>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IScheduleOperations, resourceGroupName As String, automationAccountName As String, scheduleName As String, parameters As ScheduleCreateOrUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Schedule)

參數

operations
IScheduleOperations

這個擴充方法的作業群組。

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

scheduleName
String

排程名稱。

parameters
ScheduleCreateOrUpdateParameters

提供給建立或更新排程作業的參數。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於