共用方式為


RecoveryServicesBackupExtensions.GetBackupProtectionPolicies Method

Definition

Gets a collection of BackupProtectionPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetBackupProtectionPolicies(String) instead.

public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyCollection GetBackupProtectionPolicies (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName);
static member GetBackupProtectionPolicies : Azure.ResourceManager.Resources.ResourceGroupResource * string -> Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyCollection
<Extension()>
Public Function GetBackupProtectionPolicies (resourceGroupResource As ResourceGroupResource, vaultName As String) As BackupProtectionPolicyCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

vaultName
String

The name of the recovery services vault.

Returns

An object representing collection of BackupProtectionPolicyResources and their operations over a BackupProtectionPolicyResource.

Exceptions

resourceGroupResource or vaultName is null.

vaultName is an empty string, and was expected to be non-empty.

Applies to