See Also

ITLogMsg Class  | ITLogMsg Members  | ITLogMsg.Send()

Language

Visual Basic

C#

JScript

Show All

See AlsoLanguages ItLogLib2DotNet Send feedback on this topic to support@itech-software.com.

Dispose Method

Used to free the object's resources.

[Visual Basic]
Overridable Public Sub Dispose()
[C#]
public virtual void Dispose()
[JScript]
public function Dispose();

Remarks

ITLogMsg implements the interface System.IDisposable and therefore provides this method. It is used to free the resources of the ITLogMsg instance without waiting for the Garbage Collection. Internally it calls Send() to achieve this.

 

Tip: As ITLogMsg implements  System.IDisposable, in C# you can use the using statement instead of the longer try ... except to guarantee the sending of the logmessage:

using(ITLogMsg msg= new ITLogMsg(MyModule, MyCase)) {

msg.Add("Test");

...

}   // |msg| will automatically be sent here.

See Also

ITLogMsg Class  | ITLogMsg Members  | ITLogMsg.Send()

 

 


(c) 2002-2004 iTech Software GmbH, Berlin. Version 2.4, Wed 07 Jul 2004.