Share via


DeploymentProjectBuilder.CopyFile Method

Copies the specified file to the target name and directory.

Namespace:  Microsoft.Data.Schema.Build
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Protected Shared Function CopyFile ( _
    fileToCopy As FileInfo, _
    targetFileName As String, _
    targetDirectory As DirectoryInfo _
) As FileInfo
protected static FileInfo CopyFile(
    FileInfo fileToCopy,
    string targetFileName,
    DirectoryInfo targetDirectory
)
protected:
static FileInfo^ CopyFile(
    FileInfo^ fileToCopy, 
    String^ targetFileName, 
    DirectoryInfo^ targetDirectory
)
static member CopyFile : 
        fileToCopy:FileInfo * 
        targetFileName:string * 
        targetDirectory:DirectoryInfo -> FileInfo 
protected static function CopyFile(
    fileToCopy : FileInfo, 
    targetFileName : String, 
    targetDirectory : DirectoryInfo
) : FileInfo

Parameters

Return Value

Type: System.IO.FileInfo

.NET Framework Security

See Also

Reference

DeploymentProjectBuilder Class

Microsoft.Data.Schema.Build Namespace