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

WriteProtectionEntity() private method

Write Protection Entity
private WriteProtectionEntity ( Microsoft.Azure.Management.SiteRecovery.Models.ProtectableItem protectableItem ) : void
protectableItem Microsoft.Azure.Management.SiteRecovery.Models.ProtectableItem
return void
        private void WriteProtectionEntity(ProtectableItem protectableItem)
        {
            ASRProtectionEntity entity = RecoveryServicesClient.FetchProtectionEntityData<ASRProtectionEntity>(
                protectableItem, this.ProtectionContainer.ID, this.ProtectionContainer.Name);
            this.WriteObject(entity);
        }
    }