How to get the backup status? RRS feed

  • Question

  • I'm trying to called the method "GetBackupState();", but it seems not define in WHSInfoClass. I got a error message that GetBackupStatus() not define. what's wrong with me?


    Code Snippet
    private void Bhibernate_Click(object obj, EventArgs ea)
                WHSInfoClass pInfo = new WHSInfoClass();
                int x = pInfo.GetBackupStatus();  //<-- not define message here!



    Wednesday, June 13, 2007 8:43 AM

All replies

  • GetBackupStatus is deprecated and not longer available in later releases.
    Wednesday, June 13, 2007 4:01 PM
  • Thanks for your answer, Fan. but it's not a good news. how can i get the current status of the Windows Home Server backup working without this function? any ideas or suggestion?
    Thursday, June 14, 2007 2:21 AM

    WHSInfoClass still contains two methods on backup:


    public virtual uint GetBackupEstimatedCompletionTime()

    Member of Microsoft.HomeServer.SDK.Interop.v1.WHSInfoClass


    public virtual uint GetBackupStartTime()

    Member of Microsoft.HomeServer.SDK.Interop.v1.WHSInfoClass



    Or you may register for the notification about backup status:


    void BackupStateChanged(Microsoft.HomeServer.SDK.Interop.v1.WHSBackupState State)

    Member of Microsoft.HomeServer.SDK.Interop.v1.INotificationCallback

    Thursday, June 14, 2007 4:58 PM
  • Hi Fan, Thanks a lot for these precious information.
    Friday, June 15, 2007 1:46 AM