语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

MockableNetworkArmClient.GetCloudServiceSwapAsync Method

Definition

Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>> GetCloudServiceSwapAsync(Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCloudServiceSwapAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
override this.GetCloudServiceSwapAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
Public Overridable Function GetCloudServiceSwapAsync (scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CloudServiceSwapResource))

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to