TarArchive.SetUserInfo Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class 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. ApplyUserInfoOverrides is set to true by this call.

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