TarArchive.SetUserInfo Method

Set user and group information that will be used to fill in the tar archive's entry headers. Since Java currently provides no means of determining a user name, user id, group name, or group id for a given File, TarArchive allows the programmer to specify values to be used in their place.

[Visual Basic]
Public Sub SetUserInfo( _
   ByVal userId As Integer, _
   ByVal userName As String, _
   ByVal groupId As Integer, _
   ByVal groupName As String _
)
[C#]
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 | TarArchive Members | ICSharpCode.SharpZipLib.Tar Namespace