Edit

Share via


GnuTarEntry Constructors

Definition

Overloads

GnuTarEntry(TarEntry)

Initializes a new GnuTarEntry instance by converting the specified other entry into the GNU format.

GnuTarEntry(TarEntryType, String)

Initializes a new GnuTarEntry instance with the specified entry type and entry name.

GnuTarEntry(TarEntry)

Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs

Initializes a new GnuTarEntry instance by converting the specified other entry into the GNU format.

public:
 GnuTarEntry(System::Formats::Tar::TarEntry ^ other);
public GnuTarEntry (System.Formats.Tar.TarEntry other);
new System.Formats.Tar.GnuTarEntry : System.Formats.Tar.TarEntry -> System.Formats.Tar.GnuTarEntry
Public Sub New (other As TarEntry)

Parameters

other
TarEntry

The TarEntry instance to convert to the GNU format.

Exceptions

other is a PaxGlobalExtendedAttributesTarEntry instance.

-or-

The entry type of other is not supported in the GNU format.

Applies to

GnuTarEntry(TarEntryType, String)

Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs

Initializes a new GnuTarEntry instance with the specified entry type and entry name.

public:
 GnuTarEntry(System::Formats::Tar::TarEntryType entryType, System::String ^ entryName);
public GnuTarEntry (System.Formats.Tar.TarEntryType entryType, string entryName);
new System.Formats.Tar.GnuTarEntry : System.Formats.Tar.TarEntryType * string -> System.Formats.Tar.GnuTarEntry
Public Sub New (entryType As TarEntryType, entryName As String)

Parameters

entryType
TarEntryType

The type of the entry.

entryName
String

A string with the path and file name of this entry.

Exceptions

entryName is null.

entryName is empty.

-or-

The entry type is not supported for creating an entry in the GNU format.

Remarks

When creating an instance using the GnuTarEntry(TarEntryType, String) constructor, only the following entry types are supported: Directory, HardLink, SymbolicLink, RegularFile, BlockDevice, CharacterDevice, and Fifo.

Applies to