Extracts all the files in the specified zip archive to a directory on the file system.

Namespace: T.Toolkit
Assembly: T.Toolkit (in T.Toolkit.dll)

Public Shared Function UnzipFile( _ 
ByVal zipFileName As String, _ 
Optional ByVal destinationDirectoryName As String = null _ 
) As String
This language is not supported or no code example is available.
public static string UnzipFile( 
string zipFileName
string destinationDirectoryName = null 
)
This language is not supported or no code example is available.

Parameters

zipFileName
Type: string

The zip file name that is to be extracted

destinationDirectoryName
Type: string

The path to the directory in which to place the extracted files, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.

Return Value

Type: string

If success returns null else string containg error

.NET Framework

Supported in: 4.6.2, 4.7