共用方式為


V7TarEntry 建構函式

定義

多載

V7TarEntry(TarEntry)

將指定的other項目轉換成 V7 格式,以初始化新的V7TarEntry實例。

V7TarEntry(TarEntryType, String)

使用指定的專案類型和專案名稱,初始化新的 V7TarEntry 實例。

V7TarEntry(TarEntry)

來源:
V7TarEntry.cs
來源:
V7TarEntry.cs
來源:
V7TarEntry.cs

將指定的other項目轉換成 V7 格式,以初始化新的V7TarEntry實例。

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

參數

other
TarEntry

TarEntry要轉換成 V7 格式的 實例。

例外狀況

other 是 , PaxGlobalExtendedAttributesTarEntry 而且無法轉換。

-或-

的輸入類型 other 不支援 V7 格式。

適用於

V7TarEntry(TarEntryType, String)

來源:
V7TarEntry.cs
來源:
V7TarEntry.cs
來源:
V7TarEntry.cs

使用指定的專案類型和專案名稱,初始化新的 V7TarEntry 實例。

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

參數

entryType
TarEntryType

專案的型別。

entryName
String

具有這個項目路徑和檔名的字串。

例外狀況

entryNamenull

entryName 是空的。

-或-

不支援以 V7 格式建立專案的項目類型。

備註

使用 V7TarEntry(TarEntryType, String) 建構函式建立實體時,僅支援下列項目類型: DirectoryHardLinkSymbolicLinkV7RegularFile

適用於