ZipFileExtensions.CreateEntryFromFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateEntryFromFileAsync(ZipArchive, String, String, CancellationToken) | |
CreateEntryFromFileAsync(ZipArchive, String, String, CompressionLevel, CancellationToken) |
CreateEntryFromFileAsync(ZipArchive, String, String, CancellationToken)
public static System.Threading.Tasks.Task<System.IO.Compression.ZipArchiveEntry> CreateEntryFromFileAsync(this System.IO.Compression.ZipArchive destination, string sourceFileName, string entryName, System.Threading.CancellationToken cancellationToken = default);
static member CreateEntryFromFileAsync : System.IO.Compression.ZipArchive * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Compression.ZipArchiveEntry>
<Extension()>
Public Function CreateEntryFromFileAsync (destination As ZipArchive, sourceFileName As String, entryName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ZipArchiveEntry)
Parameters
- destination
- ZipArchive
- sourceFileName
- String
- entryName
- String
- cancellationToken
- CancellationToken
Returns
Applies to
CreateEntryFromFileAsync(ZipArchive, String, String, CompressionLevel, CancellationToken)
public static System.Threading.Tasks.Task<System.IO.Compression.ZipArchiveEntry> CreateEntryFromFileAsync(this System.IO.Compression.ZipArchive destination, string sourceFileName, string entryName, System.IO.Compression.CompressionLevel compressionLevel, System.Threading.CancellationToken cancellationToken = default);
static member CreateEntryFromFileAsync : System.IO.Compression.ZipArchive * string * string * System.IO.Compression.CompressionLevel * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Compression.ZipArchiveEntry>
<Extension()>
Public Function CreateEntryFromFileAsync (destination As ZipArchive, sourceFileName As String, entryName As String, compressionLevel As CompressionLevel, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ZipArchiveEntry)
Parameters
- destination
- ZipArchive
- sourceFileName
- String
- entryName
- String
- compressionLevel
- CompressionLevel
- cancellationToken
- CancellationToken