PaxTarEntry Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
PaxTarEntry(TarEntry) |
Inizializza una nuova PaxTarEntry istanza convertendo la voce specificata |
PaxTarEntry(TarEntryType, String) |
Inizializza una nuova PaxTarEntry istanza con il tipo di voce e il nome della voce specificati e gli attributi estesi predefiniti. |
PaxTarEntry(TarEntryType, String, IEnumerable<KeyValuePair<String,String>>) |
Inizializza una nuova PaxTarEntry istanza con il tipo di voce, il nome della voce e l'enumerazione attributi estesi. |
PaxTarEntry(TarEntry)
- Origine:
- PaxTarEntry.cs
- Origine:
- PaxTarEntry.cs
- Origine:
- PaxTarEntry.cs
Inizializza una nuova PaxTarEntry istanza convertendo la voce specificata other
nel formato PAX.
public:
PaxTarEntry(System::Formats::Tar::TarEntry ^ other);
public PaxTarEntry (System.Formats.Tar.TarEntry other);
new System.Formats.Tar.PaxTarEntry : System.Formats.Tar.TarEntry -> System.Formats.Tar.PaxTarEntry
Public Sub New (other As TarEntry)
Parametri
Eccezioni
other
è un'istanza PaxGlobalExtendedAttributesTarEntry .
-oppure-
Il tipo di voce di other
non è supportato nel formato PAX.
Si applica a
PaxTarEntry(TarEntryType, String)
- Origine:
- PaxTarEntry.cs
- Origine:
- PaxTarEntry.cs
- Origine:
- PaxTarEntry.cs
Inizializza una nuova PaxTarEntry istanza con il tipo di voce e il nome della voce specificati e gli attributi estesi predefiniti.
public:
PaxTarEntry(System::Formats::Tar::TarEntryType entryType, System::String ^ entryName);
public PaxTarEntry (System.Formats.Tar.TarEntryType entryType, string entryName);
new System.Formats.Tar.PaxTarEntry : System.Formats.Tar.TarEntryType * string -> System.Formats.Tar.PaxTarEntry
Public Sub New (entryType As TarEntryType, entryName As String)
Parametri
- entryType
- TarEntryType
Tipo della voce.
- entryName
- String
Stringa con il percorso e il nome del file di questa voce.
Eccezioni
entryName
è null
.
entryName
è vuoto.
-oppure-
Il tipo di voce non è supportato per la creazione di una voce nel formato PAX.
Commenti
Quando si crea un'istanza usando il PaxTarEntry(TarEntryType, String) costruttore, sono supportati solo i tipi di voce seguenti: RegularFileSymbolicLinkHardLinkBlockDeviceDirectoryCharacterDevice, e .Fifo
Usare il PaxTarEntry(TarEntryType, String, IEnumerable<KeyValuePair<String,String>>) costruttore per includere attributi estesi aggiuntivi durante la creazione della voce.
Le voci seguenti sono sempre disponibili nel dizionario degli attributi estesi di qualsiasi voce PAX:
- Tempo di modifica, sotto il nome
mtime
, come Double numero. - Ora di accesso, sotto il nome
atime
, come Double numero. - Modificare il tempo, sotto il nome
ctime
, come Double numero. - Percorso, sotto il nome
path
, come stringa.
Le voci seguenti sono disponibili solo nel dizionario degli attributi estesi di una voce PAX se vengono soddisfatte determinate condizioni:
- Nome gruppo, sotto il nome
gname
, come stringa, se è maggiore di 32 byte. - Nome utente, sotto il nome
uname
, come stringa, se è maggiore di 32 byte. - Lunghezza del file, sotto il nome
size
, come Int32, se la rappresentazione stringa del numero è maggiore di 12 byte.
Si applica a
PaxTarEntry(TarEntryType, String, IEnumerable<KeyValuePair<String,String>>)
- Origine:
- PaxTarEntry.cs
- Origine:
- PaxTarEntry.cs
- Origine:
- PaxTarEntry.cs
Inizializza una nuova PaxTarEntry istanza con il tipo di voce, il nome della voce e l'enumerazione attributi estesi.
public:
PaxTarEntry(System::Formats::Tar::TarEntryType entryType, System::String ^ entryName, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ extendedAttributes);
public PaxTarEntry (System.Formats.Tar.TarEntryType entryType, string entryName, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> extendedAttributes);
new System.Formats.Tar.PaxTarEntry : System.Formats.Tar.TarEntryType * string * seq<System.Collections.Generic.KeyValuePair<string, string>> -> System.Formats.Tar.PaxTarEntry
Public Sub New (entryType As TarEntryType, entryName As String, extendedAttributes As IEnumerable(Of KeyValuePair(Of String, String)))
Parametri
- entryType
- TarEntryType
Tipo della voce.
- entryName
- String
Stringa con il percorso e il nome del file di questa voce.
- extendedAttributes
- IEnumerable<KeyValuePair<String,String>>
Enumerazione delle coppie chiave-valore stringa che rappresenta i metadati da includere nella voce degli attributi estesi che precede la voce corrente.
Eccezioni
extendedAttributes
o entryName
è null
.
entryName
è vuoto.
-oppure-
Il tipo di voce non è supportato per la creazione di una voce nel formato PAX.
Commenti
Usare questo costruttore per includere attributi estesi aggiuntivi durante la creazione della voce.
Le voci seguenti sono sempre disponibili nel dizionario degli attributi estesi di qualsiasi voce PAX:
- Tempo di modifica, sotto il nome
mtime
, come Double numero. - Ora di accesso, sotto il nome
atime
, come Double numero. - Modificare il tempo, sotto il nome
ctime
, come Double numero. - Percorso, sotto il nome
path
, come stringa.
Le voci seguenti sono disponibili solo nel dizionario degli attributi estesi di una voce PAX se vengono soddisfatte determinate condizioni:
- Nome gruppo, sotto il nome
gname
, come stringa, se è maggiore di 32 byte. - Nome utente, sotto il nome
uname
, come stringa, se è maggiore di 32 byte. - Lunghezza del file, sotto il nome
size
, come Int32, se la rappresentazione stringa del numero è maggiore di 12 byte.