TarArchive.SetUserInfo Method

SharpZip Compression Library

SharpZip Compression Library

TarArchive.SetUserInfo Method 

Set user and group information that will be used to fill in the tar archive's entry headers. This information based on that available for the linux operating system, which is not always available on other operating systems. TarArchive allows the programmer to specify values to be used in their place.

public void SetUserInfo(
   int userId,
   string userName,
   int groupId,
   string groupName
);

Parameters

userId
The user id to use in the headers.
userName
The user name to use in the headers.
groupId
The group id to use in the headers.
groupName
The group name to use in the headers.

See Also

TarArchive Class | ICSharpCode.SharpZipLib.Tar Namespace