Adds a new file server user with the specified password, their virtual filesystem based at the specified path, and initial path in the virtual filesystem.

Namespace:  Rebex.Net.Servers
Assembly:  Rebex.FileServer (in Rebex.FileServer.dll)

Syntax

Visual Basic
Public Function Add ( _
	userName As String, _
	password As String, _
	physicalRootPath As String, _
	initialVirtualPath As String _
) As FileServerUser
C#
public FileServerUser Add(
	string userName,
	string password,
	string physicalRootPath,
	string initialVirtualPath
)

Parameters

userName
Type: System..::..String
User name.
password
Type: System..::..String
Password.
physicalRootPath
Type: System..::..String
The placement of the virtual root of the user.
initialVirtualPath
Type: System..::..String
The initial path (i.e. home directory) of the user. This is virtual filesystem path, relative to the virtual root.

Return Value

An instance of the newly-created user.

Remarks

The password is one-way transformed to a SHA-256 hash with a random salt value.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also