Nevron Open Vision Documentation
Nevron.Nov.IO Namespace / NFileSystemService Class / CopyFileAsync Method


In This Topic
    CopyFileAsync Method (NFileSystemService)
    In This Topic
    Copies the given source file to the specified destination. Returns the new file at the specified destination.
    Syntax
    'Declaration
     
    
    Public MustOverride Function CopyFileAsync( _
       ByVal sourceFile As NFile, _
       ByVal destinationPath As System.String, _
       ByVal overwrite As System.Boolean _
    ) As NPromise(Of NFile)
    'Usage
     
    
    Dim instance As NFileSystemService
    Dim sourceFile As NFile
    Dim destinationPath As System.String
    Dim overwrite As System.Boolean
    Dim value As NPromise(Of NFile)
     
    value = instance.CopyFileAsync(sourceFile, destinationPath, overwrite)
    public abstract NPromise<NFile> CopyFileAsync( 
       NFile sourceFile,
       System.string destinationPath,
       System.bool overwrite
    )

    Parameters

    sourceFile
    destinationPath
    overwrite
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also