Compartilhar via


Método DeploymentProjectBuilder.CopyFile

Copia o arquivo especificado para o nome de destino e o diretório.

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

Sintaxe

'Declaração
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

Parâmetros

  • targetFileName
    Tipo: System.String
    O nome de arquivo de destino

Valor de retorno

Tipo: System.IO.FileInfo

Segurança do .NET Framework

Consulte também

Referência

DeploymentProjectBuilder Classe

Namespace Microsoft.Data.Schema.Build