ZipUtils.ZipFiles Method (String, String, Boolean)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
Zips the directory specified to the output Zip File.
Namespace: Microsoft.Crm.UnifiedServiceDesk.CommonUtility
Assembly: Microsoft.Crm.UnifiedServiceDesk.CommonUtility (in Microsoft.Crm.UnifiedServiceDesk.CommonUtility.dll)
Syntax
public static bool ZipFiles(
string directoryToAdd,
string outputZipFile,
bool flattenStructure = false
)
Public Shared Function ZipFiles (
directoryToAdd As String,
outputZipFile As String,
flattenStructure As Boolean
) As Boolean
Parameters
directoryToAdd
Type: System.StringSpecifies the directory name.
outputZipFile
Type: System.StringSpecifies the output zip file name.
flattenStructure
Type: System.BooleanSpecifies whether to flatten the directory structure or not. If true, the files won't retain their actual directory structure and will be added under the source directory.
Return Value
Type: System.Boolean
Type: Boolean
true if the zip operation is successful; otherwise, false.
See Also
ZipFiles Overload
ZipUtils Class
Microsoft.Crm.UnifiedServiceDesk.CommonUtility Namespace
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright