Sprache

GnuTarEntry Konstruktoren

Definition

Überlädt

Name Beschreibung
GnuTarEntry(TarEntry)

Initialisiert eine neue GnuTarEntry Instanz, indem der angegebene other Eintrag in das GNU-Format konvertiert wird.

GnuTarEntry(TarEntryType, String)

Initialisiert eine neue GnuTarEntry Instanz mit dem angegebenen Eintragstyp und Eintragsnamen.

GnuTarEntry(TarEntry)

Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs

Initialisiert eine neue GnuTarEntry Instanz, indem der angegebene other Eintrag in das GNU-Format konvertiert wird.

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)

Parameter

other
TarEntry

Die TarEntry Instanz, die in das GNU-Format konvertiert werden soll.

Ausnahmen

other ist eine PaxGlobalExtendedAttributesTarEntry Instanz.

-oder-

Der Eintragstyp wird other im GNU-Format nicht unterstützt.

Hinweise

Wenn Sie eine Instanz der GnuTarEntry Verwendung dieses Konstruktors erstellen, falls other vorhanden Gnu oderPax, werden die und ChangeTime die AccessTime Eigenschaften auf die gleichen Werte festgelegt, die in other. Wenn other es sich jedoch um ein anderes Format handelt, AccessTime werden defaultdiese ChangeTime in der Kopfzeile atime und ctime den Feldern des Eintrags als null Bytes geschrieben. Dadurch wird die Kompatibilität mit anderen Tools sichergestellt, die die atime Einträge Gnuctime nicht lesen können, da diese beiden Felder nicht POSIX-kompatibel sind, da andere Formate das prefix Feld an derselben Kopfzeilenposition erwarten, an Gnu der Schreibvorgänge atime und ctime.

Gilt für:

GnuTarEntry(TarEntryType, String)

Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs
Quelle:
GnuTarEntry.cs

Initialisiert eine neue GnuTarEntry Instanz mit dem angegebenen Eintragstyp und Eintragsnamen.

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)

Parameter

entryType
TarEntryType

Der Typ des Eintrags.

entryName
String

Eine Zeichenfolge mit dem Pfad und Dateinamen dieses Eintrags.

Ausnahmen

entryName ist null.

entryName ist leer.

-oder-

Der Eintragstyp wird für das Erstellen eines Eintrags im GNU-Format nicht unterstützt.

Hinweise

Beim Erstellen einer Instanz mit dem GnuTarEntry(TarEntryType, String) Konstruktor werden nur die folgenden Eintragstypen unterstützt: Directory, , HardLink, , SymbolicLink, RegularFile, BlockDevice, , CharacterDeviceund Fifo.

Gilt für: