Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ArchiveWriteEntry

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

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

Accepted by parameters 4

Methods

public static ArchiveWriteEntry Directory(string path, DateTimeOffset? lastWriteTime = null) #

An explicit directory record.

Parameters

path string required
lastWriteTime System.DateTimeOffset? = null optional
File 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 required
content byte[] required
lastWriteTime System.DateTimeOffset? = null optional
public 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 required
openContent System.Func<System.IO.Stream> required
lastWriteTime System.DateTimeOffset? = null optional

Properties

public string Path { get; } #

Relative member path using '/' (or '\') separators. It must pass the same safety checks as extraction.

public bool IsDirectory { get; } #

Whether the entry is a directory record.

public DateTimeOffset? LastWriteTime { get; } #

Entry modification time. Ignored when the writer options fix a timestamp.