Rediger

Del via


TarWriter.WriteEntry Method

Definition

Overloads

WriteEntry(TarEntry)

Writes the specified entry into the archive stream.

WriteEntry(String, String)

Writes the specified file into the archive stream as a tar entry.

WriteEntry(TarEntry)

Source:
TarWriter.cs
Source:
TarWriter.cs
Source:
TarWriter.cs

Writes the specified entry into the archive stream.

public:
 void WriteEntry(System::Formats::Tar::TarEntry ^ entry);
public void WriteEntry (System.Formats.Tar.TarEntry entry);
member this.WriteEntry : System.Formats.Tar.TarEntry -> unit
Public Sub WriteEntry (entry As TarEntry)

Parameters

entry
TarEntry

The tar entry to write.

Exceptions

The entry type is HardLink or SymbolicLink and the LinkName is null or empty.

The archive stream is disposed.

entry is null.

An I/O problem occurred.

Remarks

Before writing an entry to the archive, if you wrote data into the entry's DataStream, make sure to rewind it to the desired start position.

These are the entry types supported for writing on each format:

Applies to

WriteEntry(String, String)

Source:
TarWriter.cs
Source:
TarWriter.cs
Source:
TarWriter.cs

Writes the specified file into the archive stream as a tar entry.

public:
 void WriteEntry(System::String ^ fileName, System::String ^ entryName);
public void WriteEntry (string fileName, string? entryName);
member this.WriteEntry : string * string -> unit
Public Sub WriteEntry (fileName As String, entryName As String)

Parameters

fileName
String

The path to the file to write to the archive.

entryName
String

The name of the file as it should be represented in the archive. It should include the optional relative path and the filename.

Exceptions

The archive stream is disposed.

fileName or entryName is null or empty.

An I/O problem occurred.

Applies to