共用方式為


WebAppsOperationsExtensions.CreateOrUpdateHybridConnectionAsync Method

Definition

Creates a new Hybrid Connection using a Service Bus relay.

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

Parameters

operations
IWebAppsOperations

The operations group for this extension method.

resourceGroupName
String

Name of the resource group to which the resource belongs.

name
String

The name of the web app.

namespaceName
String

The namespace for this hybrid connection.

relayName
String

The relay name for this hybrid connection.

connectionEnvelope
HybridConnection

The details of the hybrid connection.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Description for Creates a new Hybrid Connection using a Service Bus relay.

Applies to