Property | Type | Description | |
---|---|---|---|
_forceZip64 | bool |
Property | Type | Description | |
---|---|---|---|
AcquireArchiveStream | void | ||
AddEntry | void | ||
CloseStreams | void | ||
DoCreateEntry | |||
EnsureCentralDirectoryRead | void | ||
Init | void | ||
IsStillArchiveStreamOwner | bool | ||
ReadCentralDirectory | void | ||
ReadEndOfCentralDirectory | void | ||
ReleaseArchiveStream | void | ||
RemoveEntry | void | ||
ThrowIfDisposed | void | ||
WriteArchiveEpilogue | void | ||
WriteFile | void |
Method | Description | |
---|---|---|
CreateEntry ( string entryName ) : System.IO.Compression.ZipArchiveEntry | ||
CreateEntry ( string entryName, System compressionLevel ) : System.IO.Compression.ZipArchiveEntry | ||
CreateEntry ( string entryName ) : |
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 exists in the archive, a second entry will be created that has an identical name. Since no
|
|
CreateEntry ( string entryName, CompressionLevel 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 exists in the archive, a second entry will be created that has an identical name.
|
|
Dispose ( ) : void | ||
GetEntry ( string entryName ) : System.IO.Compression.ZipArchiveEntry | ||
GetEntry ( string entryName ) : ZipArchiveEntry |
Retrieves a wrapper for the file entry in the archive with the specified name. Names are compared using ordinal comparison. If there are multiple entries in the archive with the specified name, the first one found will be returned.
|
|
ZipArchive ( System stream ) | ||
ZipArchive ( System stream, System mode ) | ||
ZipArchive ( System stream, System mode, bool leaveOpen ) | ||
ZipArchive ( System stream, System mode, bool leaveOpen, System entryNameEncoding ) | ||
ZipArchive ( Stream stream ) : System.Collections.Generic |
Initializes a new instance of ZipArchive on the given stream for reading.
|
|
ZipArchive ( Stream stream, ZipArchiveMode mode ) : System.Collections.Generic |
Initializes a new instance of ZipArchive on the given stream in the specified mode.
|
|
ZipArchive ( Stream stream, ZipArchiveMode mode, bool leaveOpen ) : System.Collections.Generic |
Initializes a new instance of ZipArchive on the given stream in the specified mode, specifying whether to leave the stream open.
|
|
ZipArchive ( Stream stream, ZipArchiveMode mode, bool leaveOpen, Encoding entryNameEncoding ) : System.Collections.Generic |
Initializes a new instance of ZipArchive on the given stream in the specified mode, specifying whether to leave the stream open.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
AcquireArchiveStream ( |
||
AddEntry ( |
||
CloseStreams ( ) : void | ||
DoCreateEntry ( string entryName, CompressionLevel compressionLevel ) : |
||
EnsureCentralDirectoryRead ( ) : void | ||
Init ( Stream stream, ZipArchiveMode mode, bool leaveOpen ) : void | ||
IsStillArchiveStreamOwner ( ZipArchiveEntry entry ) : bool | ||
ReadCentralDirectory ( ) : void | ||
ReadEndOfCentralDirectory ( ) : void | ||
ReleaseArchiveStream ( ZipArchiveEntry entry ) : void | ||
RemoveEntry ( ZipArchiveEntry entry ) : void | ||
ThrowIfDisposed ( ) : void | ||
WriteArchiveEpilogue ( long startOfCentralDirectory, long sizeOfCentralDirectory ) : void | ||
WriteFile ( ) : void |
public CreateEntry ( string entryName ) : System.IO.Compression.ZipArchiveEntry | ||
entryName | string | |
return | System.IO.Compression.ZipArchiveEntry |
public CreateEntry ( string entryName, System compressionLevel ) : System.IO.Compression.ZipArchiveEntry | ||
entryName | string | |
compressionLevel | System | |
return | System.IO.Compression.ZipArchiveEntry |
public CreateEntry ( string entryName ) : |
||
entryName | string | A path relative to the root of the archive, indicating the name of the entry to be created. |
return |
public CreateEntry ( string entryName, CompressionLevel compressionLevel ) : |
||
entryName | string | A path relative to the root of the archive, indicating the name of the entry to be created. |
compressionLevel | CompressionLevel | The level of the compression (speed/memory vs. compressed size trade-off). |
return |
public GetEntry ( string entryName ) : System.IO.Compression.ZipArchiveEntry | ||
entryName | string | |
return | System.IO.Compression.ZipArchiveEntry |
public GetEntry ( string entryName ) : ZipArchiveEntry | ||
entryName | string | A path relative to the root of the archive, identifying the desired entry. |
return | ZipArchiveEntry |
public ZipArchive ( System stream, System mode ) | ||
stream | System | |
mode | System |
public ZipArchive ( System stream, System mode, bool leaveOpen ) | ||
stream | System | |
mode | System | |
leaveOpen | bool |
public ZipArchive ( System stream, System mode, bool leaveOpen, System entryNameEncoding ) | ||
stream | System | |
mode | System | |
leaveOpen | bool | |
entryNameEncoding | System |
public ZipArchive ( Stream stream ) : System.Collections.Generic | ||
stream | Stream | The stream containing the archive to be read. |
return | System.Collections.Generic |
public ZipArchive ( Stream stream, ZipArchiveMode mode ) : System.Collections.Generic | ||
stream | Stream | The input or output stream. |
mode | ZipArchiveMode | See the description of the ZipArchiveMode enum. Read requires the stream to support reading, Create requires the stream to support writing, and Update requires the stream to support reading, writing, and seeking. |
return | System.Collections.Generic |
public ZipArchive ( Stream stream, ZipArchiveMode mode, bool leaveOpen ) : System.Collections.Generic | ||
stream | Stream | The input or output stream. |
mode | ZipArchiveMode | See the description of the ZipArchiveMode enum. Read requires the stream to support reading, Create requires the stream to support writing, and Update requires the stream to support reading, writing, and seeking. |
leaveOpen | bool | true to leave the stream open upon disposing the ZipArchive, otherwise false. |
return | System.Collections.Generic |
public ZipArchive ( Stream stream, ZipArchiveMode mode, bool leaveOpen, Encoding entryNameEncoding ) : System.Collections.Generic | ||
stream | Stream | The input or output stream. |
mode | ZipArchiveMode | See the description of the ZipArchiveMode enum. Read requires the stream to support reading, Create requires the stream to support writing, and Update requires the stream to support reading, writing, and seeking. |
leaveOpen | bool | true to leave the stream open upon disposing the ZipArchive, otherwise false. |
entryNameEncoding | Encoding | The encoding to use when reading or writing entry names in this ZipArchive.
/// /// /// This value is used as follows:
|
return | System.Collections.Generic |