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

GetAll() private method

Queries all Protection Entities under given Protection Container.
private GetAll ( ) : void
return void
        private void GetAll()
        {
            ProtectableItemListResponse protectableItemListResponse = RecoveryServicesClient.GetAzureSiteRecoveryProtectableItem(
                Utilities.GetValueFromArmId(this.ProtectionContainer.ID, ARMResourceTypeConstants.ReplicationFabrics),
                this.ProtectionContainer.Name);

            WriteProtectionEntities(protectableItemListResponse.ProtectableItems);
        }