Microsoft.Azure.Commands.RecoveryServices.GetAzureSiteRecoveryProtectionEntity.GetById C# (CSharp) Method

GetById() private method

Queries by Id.
private GetById ( ) : void
return void
        private void GetById()
        {
            ProtectionEntityResponse protectionEntityResponse =
                RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity(
                this.ProtectionContainerId,
                this.Id);

            this.WriteProtectionEntity(protectionEntityResponse.ProtectionEntity);
        }