Skip to content

Commit 40379de

Browse files
authored
Change RemoveAll to Clear
RemoveAll takes a predicate (https://msdn.microsoft.com/en-us/library/wdka673a(v=vs.110).aspx), Clear does not.
1 parent bf27632 commit 40379de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/help/New-AzureRmRecoveryServicesBackupProtectionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdle
3636
### Example 1: Create a Backup protection policy
3737
```
3838
PS C:\> $SchPol = Get-AzureRmRecoveryServicesBackupSchedulePolicyObject -WorkloadType "AzureVM"
39-
PS C:\> $SchPol.ScheduleRunTimes.RemoveAll()
39+
PS C:\> $SchPol.ScheduleRunTimes.Clear()
4040
PS C:\> $Dt = Get-Date
4141
PS C:\> $SchPol.ScheduleRunTimes.Add($Dt.ToUniversalTime())
4242
PS C:\> $RetPol = Get-AzureRmRecoveryServicesBackupRetentionPolicyObject -WorkloadType "AzureVM"

0 commit comments

Comments
 (0)