共用方式為


SqlExtensions.GetSubscriptionLongTermRetentionBackups Method

Definition

Gets a collection of SubscriptionLongTermRetentionBackupResources in the SubscriptionResource. MockingTo mock this method, please mock GetSubscriptionLongTermRetentionBackups(AzureLocation, String, String) instead.

public static Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupCollection GetSubscriptionLongTermRetentionBackups (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName);
static member GetSubscriptionLongTermRetentionBackups : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string -> Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupCollection
<Extension()>
Public Function GetSubscriptionLongTermRetentionBackups (subscriptionResource As SubscriptionResource, locationName As AzureLocation, longTermRetentionServerName As String, longTermRetentionDatabaseName As String) As SubscriptionLongTermRetentionBackupCollection

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

locationName
AzureLocation

The location of the database.

longTermRetentionServerName
String

The name of the server.

longTermRetentionDatabaseName
String

The name of the database.

Returns

An object representing collection of SubscriptionLongTermRetentionBackupResources and their operations over a SubscriptionLongTermRetentionBackupResource.

Exceptions

subscriptionResource, longTermRetentionServerName or longTermRetentionDatabaseName is null.

longTermRetentionServerName or longTermRetentionDatabaseName is an empty string, and was expected to be non-empty.

Applies to