Microsoft.Azure.Commands.SiteRecovery.GetAzureSiteRecoveryProtectionEntity.ExecuteSiteRecoveryCmdlet C# (CSharp) Method

ExecuteSiteRecoveryCmdlet() public method

ProcessRecord of the command.
public ExecuteSiteRecoveryCmdlet ( ) : void
return void
        public override void ExecuteSiteRecoveryCmdlet()
        {
            base.ExecuteSiteRecoveryCmdlet();

            this.WriteWarningWithTimestamp(
                string.Format(Properties.Resources.CmdletWillBeDeprecatedSoon,
                    this.MyInvocation.MyCommand.Name,
                    "Get-AzureRmSiteRecoveryProtectableItem or Get-AzureRmSiteRecoveryReplicationProtectedItem"));

            switch (this.ParameterSetName)
            {
                case ASRParameterSets.ByObject:
                    this.GetAll();
                    break;
                case ASRParameterSets.ByObjectWithName:
                    this.GetByName();
                    break;
                case ASRParameterSets.ByObjectWithFriendlyName:
                    this.GetByFriendlyName();
                    break;
            }
        }