SqlExtensions.GetDeletedServers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetDeletedServers(SubscriptionResource, AzureLocation) |
Gets a collection of DeletedServers in the SubscriptionResource<item> Mocking. To mock this method, please mock GetDeletedServers(AzureLocation) instead. </item> |
| GetDeletedServers(SubscriptionResource, CancellationToken) |
Gets a list of all deleted servers in a subscription. <item> Mocking. To mock this method, please mock GetDeletedServers(CancellationToken) instead. </item> |
GetDeletedServers(SubscriptionResource, AzureLocation)
- Source:
- SqlExtensions.cs
- Source:
- SqlExtensions.cs
Gets a collection of DeletedServers in the SubscriptionResource<item> Mocking. To mock this method, please mock GetDeletedServers(AzureLocation) instead. </item>
public static Azure.ResourceManager.Sql.DeletedServerCollection GetDeletedServers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName);
static member GetDeletedServers : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation -> Azure.ResourceManager.Sql.DeletedServerCollection
<Extension()>
Public Function GetDeletedServers (subscriptionResource As SubscriptionResource, locationName As AzureLocation) As DeletedServerCollection
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- locationName
- AzureLocation
The locationName for the resource.
Returns
An object representing collection of DeletedServers and their operations over a DeletedServerResource.
Exceptions
subscriptionResource is null.
Applies to
GetDeletedServers(SubscriptionResource, CancellationToken)
- Source:
- SqlExtensions.cs
- Source:
- SqlExtensions.cs
Gets a list of all deleted servers in a subscription. <item> Mocking. To mock this method, please mock GetDeletedServers(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource> GetDeletedServers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDeletedServers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource>
<Extension()>
Public Function GetDeletedServers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DeletedServerResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DeletedServerResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.