Class
ArchiveWriteEntry
OfficeIMO.Archives
One file or directory to write into a ZIP or TAR archive.
Inheritance
- object
- ArchiveWriteEntry
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Method ArchiveWriteEntry.Directory
- Method ArchiveWriteEntry.File
Accepted by parameters 4
- Method TarArchiveWriter.Add
- Method TarArchiveWriter.Create
- Method ZipArchiveWriter.Add
- Method ZipArchiveWriter.Create
Methods
public static ArchiveWriteEntry Directory(string path, DateTimeOffset? lastWriteTime = null) #An explicit directory record.
Parameters
- path string
- lastWriteTime System.DateTimeOffset? = null
Returns
ArchiveWriteEntryFile 2 overloads
public static ArchiveWriteEntry File(string path, byte[] content, DateTimeOffset? lastWriteTime = null) #A file whose complete content is already in memory.
Parameters
- path string
- content byte[]
- lastWriteTime System.DateTimeOffset? = null
Returns
ArchiveWriteEntrypublic static ArchiveWriteEntry File(string path, Func<Stream> openContent, DateTimeOffset? lastWriteTime = null) #A file read from a stream that the writer opens when it reaches the entry and disposes afterwards.
Parameters
- path string
- openContent System.Func<System.IO.Stream>
- lastWriteTime System.DateTimeOffset? = null
Returns
ArchiveWriteEntry