V7TarEntry 构造函数

定义

重载

V7TarEntry(TarEntry)

通过将指定的other条目转换为 V7 格式来初始化新V7TarEntry实例。

V7TarEntry(TarEntryType, String)

使用指定的条目类型和条目名称初始化新 V7TarEntry 实例。

V7TarEntry(TarEntry)

Source:
V7TarEntry.cs
Source:
V7TarEntry.cs
Source:
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 无法转换。

-或-

V7 格式不支持 的 other 条目类型。

适用于

V7TarEntry(TarEntryType, String)

Source:
V7TarEntry.cs
Source:
V7TarEntry.cs
Source:
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

适用于