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 命名空间