GnuTarEntry 构造函数

定义

重载

GnuTarEntry(TarEntry)

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

GnuTarEntry(TarEntryType, String)

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

GnuTarEntry(TarEntry)

Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs

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

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)

参数

other
TarEntry

TarEntry 转换为 GNU 格式的实例。

例外

other 是 实例 PaxGlobalExtendedAttributesTarEntry

-或-

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

适用于

GnuTarEntry(TarEntryType, String)

Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs
Source:
GnuTarEntry.cs

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

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)

参数

entryType
TarEntryType

条目的类型。

entryName
String

包含此条目的路径和文件名的字符串。

例外

entryNamenull

entryName 为空。

- 或 -

不支持以 GNU 格式创建条目类型。

注解

使用 GnuTarEntry(TarEntryType, String) 构造函数创建实例时,仅支持以下条目类型:Directory、、HardLinkSymbolicLinkRegularFileBlockDeviceCharacterDeviceFifo

适用于