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

SqlExtensions.GetDeletedServerAsync 方法

定义

获取已删除的服务器。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • 操作IdDeletedServers_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.DeletedServerResource>> GetDeletedServerAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, string deletedServerName, System.Threading.CancellationToken cancellationToken = default);
static member GetDeletedServerAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.DeletedServerResource>>
<Extension()>
Public Function GetDeletedServerAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, deletedServerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeletedServerResource))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

locationName
AzureLocation

资源所在的区域的名称。

deletedServerName
String

已删除的服务器的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

deletedServerName 是一个空字符串,预期为非空。

deletedServerName 为 null。

适用于