You can subscribe a method to the "ServiceOutput" event.
I  have  usually switched it off, because means a performance penalty,
but for debugging I usually turn it on.

Here is a small example which should put you into the right direction.
All   you   need   to   do   is   to   write   "e.Message"   from  the
ServiceOutputEventArgs e into a RichTextBox or similar.

FbBackup works the same as FbRestore in that aspect.

internal delegate void OnRestoreResultEventHandler(object sender, 
ServiceOutputEventArgs e);
internal static event OnRestoreResultEventHandler OnRestoreResult;

FbRestore _Restore    = new FirebirdSql.Data.Services.FbRestore();

_Restore.ServiceOutput += new ServiceOutputEventHandler(_Restore_ServiceOutput);
...
...
...

private static void _Restore_ServiceOutput(object sender, 
ServiceOutputEventArgs e)
{
  if (OnRestoreResult != null) OnRestoreResult(_Restore, e);
}

> Hello everyone

> I have a question,  when using the fbbackup on .net have a way to
> know if the backup was completely sucesfull???

> And wirh fbreatore??

> Enviado pelo meu Windows Phone


mit freundlichen Grüßen,

André Knappstein
EDV und Controlling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
beta Eigenheim- und Grundstücksverwertungsgesellschaft mbH
Hafenweg 4
59192 Bergkamen-Rünthe

Telefon: +49 2389 9240 140
Telefax: +49 2389 9240 150
e-mail:  knappst...@beta-eigenheim.de

Amtsgericht Hamm Nr. B 420
Geschäftsführer: Achim Krähling, Dirk Salewski und Matthias Steinhaus

USt-IDNr.: DE 125215402


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to