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
- fileToCopy
Type: System.IO.FileInfo
The file to be copied
- targetFileName
Type: System.String
The destination filename
- targetDirectory
Type: System.IO.DirectoryInfo
The destination directoty
Return Value
Type: System.IO.FileInfo
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.