共用方式為


HttpClientConnection100Class.DownloadFile 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Downloads data from the resource specified by ServerURL property to a local file.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Public Overridable Sub DownloadFile ( _
    FileName As String, _
    vbOverwriteDestination As Boolean _
)
'用途
Dim instance As HttpClientConnection100Class 
Dim FileName As String 
Dim vbOverwriteDestination As Boolean

instance.DownloadFile(FileName, vbOverwriteDestination)
public virtual void DownloadFile(
    string FileName,
    bool vbOverwriteDestination
)
public:
virtual void DownloadFile(
    [InAttribute] String^ FileName, 
    [InAttribute] bool vbOverwriteDestination
)
abstract DownloadFile : 
        FileName:string * 
        vbOverwriteDestination:bool -> unit  
override DownloadFile : 
        FileName:string * 
        vbOverwriteDestination:bool -> unit
public function DownloadFile(
    FileName : String, 
    vbOverwriteDestination : boolean
)

參數

  • FileName
    型別:System.String
    The name of the local file into which the downloaded data is stored.
  • vbOverwriteDestination
    型別:System.Boolean
    A Boolean that indicates whether to overwrite an existing file, if found. A value of true will overwrite the existing file.

實作

IDTSHttpClientConnection100.DownloadFile(String, Boolean)

請參閱

參考

HttpClientConnection100Class 類別

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間