Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ReadWriteFileSystemProvider.MakeNewFileNode Method

Namespace: Rebex.IO.FileSystem
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

MakeNewFileNode(String, DirectoryNode)

Factory method that creates a new instance of FileNode that will have Name initialized to name and Parent initialized to parentNode. Classes derived from the class ReadOnlyFileSystemProvider or from the class ReadWriteFileSystemProvider can override this method and returns instance of the more specific class derived from FileNode.

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.

Inherited from ReadOnlyFileSystemProvider.
Declaration
protected virtual FileNode MakeNewFileNode(string name, DirectoryNode parentNode)
Parameters
Type Name Description
String name

Name of the new FileNode.

DirectoryNode parentNode

Parent of the new DirectoryNode.

Returns
Type Description
FileNode

A new instance of FileNode.

In This Article
  • MakeNewFileNode(String, DirectoryNode)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies