ZipArchive.CreateFromDirectory 方法 (String, String, CompressionLevel, Boolean)
命名空間: Microsoft.TeamFoundation.Framework.Server.Alm
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
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
)
參數
- sourceDirectoryName
型別:System.String
- destinationArchiveFileName
型別:System.String
- compressionLevel
型別:Microsoft.TeamFoundation.Framework.Server.Alm.CompressionLevel
- includeBaseDirectory
型別:System.Boolean
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。