Creates a zip archive that contains the files and directories from the specified directory.

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

Public Shared Function ZipFile( _ 
ByVal sourceDirectoryName As String, _ 
ByVal destinationArchiveFileName As String
) As String
This language is not supported or no code example is available.
public static string ZipFile( 
string sourceDirectoryName
string destinationArchiveFileName 
)
This language is not supported or no code example is available.

Parameters

sourceDirectoryName
Type: string

The path to the directory to be archived, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.

destinationArchiveFileName
Type: string

The path of the archive to be created, 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