Xceed .NET Libraries Documentation
CreateFolder(FileSystemEvents,Object,String) Method


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > AbstractFolder Class > CreateFolder Method : CreateFolder(FileSystemEvents,Object,String) Method
A FileSystemEvents object that will be used to raise events. Cannot be a null reference (Nothing in Visual Basic).
Opaque data that will be passed back to the event handler when an event is raised.
Relative name of the new file.
Creates a new folder in the folder and raises events during the process.
Syntax
'Declaration
 
Public Overloads Function CreateFolder( _

   ByVal events As FileSystemEvents, _

   ByVal userData As Object, _

   ByVal relativeName As String _

) As AbstractFolder
'Usage
 
Dim instance As AbstractFolder

Dim events As FileSystemEvents

Dim userData As Object

Dim relativeName As String

Dim value As AbstractFolder

 

value = instance.CreateFolder(events, userData, relativeName)
public AbstractFolder CreateFolder( 

   FileSystemEvents events,

   object userData,

   string relativeName

)

Parameters

events
A FileSystemEvents object that will be used to raise events. Cannot be a null reference (Nothing in Visual Basic).
userData
Opaque data that will be passed back to the event handler when an event is raised.
relativeName
Relative name of the new file.

Return Value

An AbstractFolder object representing the newly created folder.
Remarks

The relativeName parameter can include relative path information, in which ".." means "previous folder". For example: "folder/subFolder", "../folder", etc.

If a folder named relativeName already exist, this method does nothing.

If the physical folder in which the new folder is to be created does not exist, it is created.

The current property values (such as FileSystemItem.Attributes) are applied to the newly created folder.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AbstractFolder Class
AbstractFolder Members
Overload List