ReadOnlyFileSystemProvider.MakeNewDirectoryNode Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9083)
MakeNewDirectoryNode(String, DirectoryNode)
Factory method that creates a new instance of DirectoryNode with
Name initialized to name
and Parent
initialized to parentNode
.
Classes derived from the ReadOnlyFileSystemProvider class or from the class ReadWriteFileSystemProvider
can override this method and returns instance of the more specific class derived from DirectoryNode.
When the virtual file system is used in the FileServer component, the server session, which contains information about the user and the active connection, can be accessed using Current property.
Declaration
protected virtual DirectoryNode MakeNewDirectoryNode(string name, DirectoryNode parentNode)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the new DirectoryNode. |
DirectoryNode | parentNode | Parent of the new DirectoryNode. |
Returns
Type | Description |
---|---|
DirectoryNode | A new instance of DirectoryNode. |