Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / AbstractFolder Class / CreateFolder Method / CreateFolder(String) Method
Relative name of the new folder.


In This Topic
    CreateFolder(String) Method
    In This Topic
    Creates a new folder in the folder.
    Syntax
    'Declaration
     
    Public Overloads Function CreateFolder( _
       ByVal relativeName As String _
    ) As AbstractFolder
    'Usage
     
    Dim instance As AbstractFolder
    Dim relativeName As String
    Dim value As AbstractFolder
     
    value = instance.CreateFolder(relativeName)
    public AbstractFolder CreateFolder( 
       string relativeName
    )

    Parameters

    relativeName
    Relative name of the new folder.

    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