ZipArchive.CreateEntry Method (String, CompressionLevel)
Creates an empty entry in the Zip archive with the specified entry name. There are no restrictions on the names of entries. The last write time of the entry is set to the current time. If an entry with the specified name already occurs in the archive, a second entry will be created that has the same name.
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
'Declaration Public Function CreateEntry ( _ entryName As String, _ compressionLevel As CompressionLevel _ ) As ZipArchiveEntry
- Type: System.String
A path relative to the root of the archive that indicates the name of the entry to be created.
- Type: Microsoft.TeamFoundation.Framework.Server.CompressionLevel
The level of the compression (speed/memory vs. compressed size trade-off).
Return ValueType: Microsoft.TeamFoundation.Framework.Server.ZipArchiveEntry
A wrapper for the newly created file entry in the archive.
- 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.