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

WriteProtectionEntities() private method

Write Protection Entities
private WriteProtectionEntities ( IList protectableItems ) : void
protectableItems IList List of protectable items
return void
        private void WriteProtectionEntities(IList<ProtectableItem> protectableItems)
        {
            List<ASRProtectionEntity> asrProtectionEntityList = RecoveryServicesClient.FetchProtectionEntitiesData<ASRProtectionEntity>(
                protectableItems, this.ProtectionContainer.ID, this.ProtectionContainer.Name);

            this.WriteObject(asrProtectionEntityList, true);
        }