Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / FileSystemItem Class / Create Method / Create(FileSystemEvents,Object) 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.


In This Topic
    Create(FileSystemEvents,Object) Method
    In This Topic
    Creates the physical item represented by this FileSystemItem object and raises events during the process.
    Syntax
    'Declaration
     
    Public Overloads Sub Create( _
       ByVal events As FileSystemEvents, _
       ByVal userData As Object _
    ) 
    'Usage
     
    Dim instance As FileSystemItem
    Dim events As FileSystemEvents
    Dim userData As Object
     
    instance.Create(events, userData)
    public void Create( 
       FileSystemEvents events,
       object userData
    )

    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.
    Remarks

    If this FileSystemItem object represents a file, an empty file is created. If it represents a folder, a folder is created.

    If the physical item already exists, an exception is thrown.

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

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

    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