IRunbookDraftOperations.ReplaceContentWithHttpMessagesAsync Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Lecseréli a runbook piszkozat tartalmát. http://aka.ms/azureautomationsdk/runbookdraftoperations
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream,Microsoft.Azure.Management.Automation.Models.RunbookDraftReplaceContentHeaders>> ReplaceContentWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string runbookName, System.IO.Stream runbookContent, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceContentWithHttpMessagesAsync : string * string * string * System.IO.Stream * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream, Microsoft.Azure.Management.Automation.Models.RunbookDraftReplaceContentHeaders>>
Public Function ReplaceContentWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, runbookName As String, runbookContent As Stream, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Stream, RunbookDraftReplaceContentHeaders))
Paraméterek
- resourceGroupName
- String
Egy Azure-erőforráscsoport neve.
- automationAccountName
- String
Az automation-fiók neve.
- runbookName
- String
A runbook neve.
- runbookContent
- Stream
A runbook piszkozattartalma.
- customHeaders
- Dictionary<String,List<String>>
A kérelemhez hozzáadandó fejlécek.
- cancellationToken
- CancellationToken
A lemondási jogkivonat.
Válaszok
Kivételek
A művelet érvénytelen állapotkód visszaadásakor lett eldobva
A válasz deszerializálása sikertelen volt
Akkor van eldobva, ha egy kötelező paraméter null értékű
A következőre érvényes:
Azure SDK for .NET