共用方式為


DeletedServerCollection Class

Definition

A class representing a collection of DeletedServerResource and their operations. Each DeletedServerResource in the collection will belong to the same instance of SubscriptionResource. To get a DeletedServerCollection instance call the GetDeletedServers method from an instance of SubscriptionResource.

public class DeletedServerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Sql.DeletedServerResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.DeletedServerResource>
type DeletedServerCollection = class
    inherit ArmCollection
    interface seq<DeletedServerResource>
    interface IEnumerable
    interface IAsyncEnumerable<DeletedServerResource>
Public Class DeletedServerCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of DeletedServerResource), IEnumerable(Of DeletedServerResource)
Inheritance
DeletedServerCollection
Implements

Constructors

DeletedServerCollection()

Initializes a new instance of the DeletedServerCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • Operation Id: DeletedServers_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • Operation Id: DeletedServers_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
Get(String, CancellationToken)

Gets a deleted server.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • Operation Id: DeletedServers_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
GetAll(CancellationToken)

Gets a list of deleted servers for a location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers
  • Operation Id: DeletedServers_ListByLocation
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
GetAllAsync(CancellationToken)

Gets a list of deleted servers for a location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers
  • Operation Id: DeletedServers_ListByLocation
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
GetAsync(String, CancellationToken)

Gets a deleted server.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • Operation Id: DeletedServers_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • Operation Id: DeletedServers_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}
  • Operation Id: DeletedServers_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<DeletedServerResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DeletedServerResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to