Freigeben über


WebAppsOperationsExtensions.CreateOrUpdateHostNameBindingAsync Methode

Definition

Erstellt eine Hostnamenbindung für eine App.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.HostNameBinding> CreateOrUpdateHostNameBindingAsync (this Microsoft.Azure.Management.WebSites.IWebAppsOperations operations, string resourceGroupName, string name, string hostName, Microsoft.Azure.Management.WebSites.Models.HostNameBinding hostNameBinding, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateHostNameBindingAsync : Microsoft.Azure.Management.WebSites.IWebAppsOperations * string * string * string * Microsoft.Azure.Management.WebSites.Models.HostNameBinding * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.HostNameBinding>
<Extension()>
Public Function CreateOrUpdateHostNameBindingAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, hostName As String, hostNameBinding As HostNameBinding, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HostNameBinding)

Parameter

operations
IWebAppsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Name der Ressourcengruppe, zu der die Ressource gehört.

name
String

Name der App

hostName
String

Hostname in der Hostnamenbindung.

hostNameBinding
HostNameBinding

Bindungsdetails. Dies ist die JSON-Darstellung eines HostNameBinding-Objekts.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Beschreibung für Erstellt eine Hostnamenbindung für eine App.

Gilt für: