共用方式為


ZipUtils.ZipFiles Method (List<String>, String, Boolean)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Zips the requested files into the output ZipFile.

Namespace:   Microsoft.Crm.UnifiedServiceDesk.CommonUtility
Assembly:  Microsoft.Crm.UnifiedServiceDesk.CommonUtility (in Microsoft.Crm.UnifiedServiceDesk.CommonUtility.dll)

Syntax

public static bool ZipFiles(
    List<string> fileNames,
    string outputZipFile,
    bool flattenStructure = false
)
Public Shared Function ZipFiles (
    fileNames As List(Of String),
    outputZipFile As String,
    flattenStructure As Boolean
) As Boolean

Parameters

  • outputZipFile
    Type: System.String

    Specifies the output zip file.

  • flattenStructure
    Type: System.Boolean

    Specifies 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 files are zipped successfully; 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