IdeaBlade DevForce 2010 Help Reference
Dispose(Boolean) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Zlib Namespace > GZipStream Class > Dispose Method : Dispose(Boolean) Method



disposing
indicates whether the Dispose method was invoked by user code.
Dispose the stream.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overrides Sub Dispose( _
   ByVal disposing As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As GZipStream
Dim disposing As Boolean
 
instance.Dispose(disposing)
C# 
protected override void Dispose( 
   bool disposing
)
C++/CLI 
protected:
void Dispose( 
   bool disposing
) override 

Parameters

disposing
indicates whether the Dispose method was invoked by user code.

Remarks

This may or may not result in a Close() call on the captive stream. See the constructors that have a leaveOpen parameter for more information.

This method may be invoked in two distinct scenarios. If disposing == true, the method has been called directly or indirectly by a user's code, for example via the public Dispose() method. In this case, both managed and unmanaged resources can be referenced and disposed. If disposing == false, the method has been called by the runtime from inside the object finalizer and this method should not reference other objects; in that case only unmanaged resources must be referenced or disposed.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.