ZipArchive.CreateFromDirectory Method (String, String, CompressionLevel, Boolean)
Namespace: Microsoft.TeamFoundation.Framework.Server.Alm
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Shared Sub CreateFromDirectory ( _
sourceDirectoryName As String, _
destinationArchiveFileName As String, _
compressionLevel As CompressionLevel, _
includeBaseDirectory As Boolean _
)
public static void CreateFromDirectory(
string sourceDirectoryName,
string destinationArchiveFileName,
CompressionLevel compressionLevel,
bool includeBaseDirectory
)
public:
static void CreateFromDirectory(
String^ sourceDirectoryName,
String^ destinationArchiveFileName,
CompressionLevel compressionLevel,
bool includeBaseDirectory
)
static member CreateFromDirectory :
sourceDirectoryName:string *
destinationArchiveFileName:string *
compressionLevel:CompressionLevel *
includeBaseDirectory:bool -> unit
public static function CreateFromDirectory(
sourceDirectoryName : String,
destinationArchiveFileName : String,
compressionLevel : CompressionLevel,
includeBaseDirectory : boolean
)
Parameters
- sourceDirectoryName
Type: System.String
- destinationArchiveFileName
Type: System.String
- compressionLevel
Type: Microsoft.TeamFoundation.Framework.Server.Alm.CompressionLevel
- includeBaseDirectory
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.