Bewerken

Delen via


UstarTarEntry Constructors

Definition

Overloads

UstarTarEntry(TarEntry)

Initializes a new UstarTarEntry instance by converting the specified other entry into the Ustar format.

UstarTarEntry(TarEntryType, String)

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

UstarTarEntry(TarEntry)

Source:
UstarTarEntry.cs
Source:
UstarTarEntry.cs
Source:
UstarTarEntry.cs

Initializes a new UstarTarEntry instance by converting the specified other entry into the Ustar format.

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

Parameters

other
TarEntry

The TarEntry instance to convert to the Ustar format.

Exceptions

other is a PaxGlobalExtendedAttributesTarEntry instance.

-or-

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

Applies to

UstarTarEntry(TarEntryType, String)

Source:
UstarTarEntry.cs
Source:
UstarTarEntry.cs
Source:
UstarTarEntry.cs

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

public:
 UstarTarEntry(System::Formats::Tar::TarEntryType entryType, System::String ^ entryName);
public UstarTarEntry (System.Formats.Tar.TarEntryType entryType, string entryName);
new System.Formats.Tar.UstarTarEntry : System.Formats.Tar.TarEntryType * string -> System.Formats.Tar.UstarTarEntry
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 Ustar format.

Remarks

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

Applies to