Nevron Open Vision Documentation
Nevron.Nov.IO Namespace / NInteropFileSystemServiceProxy Class / CopyFileAsync Method
The source file.
The destination file.
Specifies whether file overwriting is allowed.


In This Topic
    CopyFileAsync Method (NInteropFileSystemServiceProxy)
    In This Topic
    Copies the given source file to the specified destination file.
    Syntax
    'Declaration
     
    
    Public Overrides Function CopyFileAsync( _
       ByVal sourceFile As NFile, _
       ByVal destinationPath As System.String, _
       ByVal overwrite As System.Boolean _
    ) As NPromise(Of NFile)
    'Usage
     
    
    Dim instance As NInteropFileSystemServiceProxy
    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 override NPromise<NFile> CopyFileAsync( 
       NFile sourceFile,
       System.string destinationPath,
       System.bool overwrite
    )

    Parameters

    sourceFile
    The source file.
    destinationPath
    The destination file.
    overwrite
    Specifies whether file overwriting is allowed.
    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