Xceed .NET Libraries Documentation
GZip(String,Boolean,String) Method


Xceed.GZip Assembly > Xceed.GZip Namespace > QuickGZip Class > GZip Method : GZip(String,Boolean,String) Method
The full path of the destination GZip file.
Boolean value indicating whether existing items in the destination should be replaced.
The path of the file to add to the GZip file.
Adds the specified file to the GZip file, specifying whether files should be replaced.
Syntax
'Declaration
 
Public Overloads Shared Sub GZip( _
   ByVal gzipFileName As String, _
   ByVal replaceExistingFiles As Boolean, _
   ByVal fileToGZip As String _
) 
'Usage
 
Dim gzipFileName As String
Dim replaceExistingFiles As Boolean
Dim fileToGZip As String
 
QuickGZip.GZip(gzipFileName, replaceExistingFiles, fileToGZip)
public static void GZip( 
   string gzipFileName,
   bool replaceExistingFiles,
   string fileToGZip
)

Parameters

gzipFileName
The full path of the destination GZip file.
replaceExistingFiles
Boolean value indicating whether existing items in the destination should be replaced.
fileToGZip
The path of the file to add to the GZip file.
Remarks
QuickGZip only supports single file compression because although the compression process allows compression of multiple files, the content of the entire GZip file must first be uncompressed before adding additional files to the GZip file.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

QuickGZip Class
QuickGZip Members
Overload List