共用方式為


HttpClientConnection 類別

Contains properties and methods that enable a package to access a Web server using the HTTP protocol to send or receive files. This class cannot be inherited.

繼承階層

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.HttpClientConnection

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

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class HttpClientConnection _
    Inherits DtsObject _
    Implements IDTSPersist
'用途
Dim instance As HttpClientConnection
[SerializableAttribute]
public sealed class HttpClientConnection : DtsObject, 
    IDTSPersist
[SerializableAttribute]
public ref class HttpClientConnection sealed : public DtsObject, 
    IDTSPersist
[<SealedAttribute>]
[<SerializableAttribute>]
type HttpClientConnection =  
    class 
        inherit DtsObject 
        interface IDTSPersist 
    end
public final class HttpClientConnection extends DtsObject implements IDTSPersist

HttpClientConnection 型別公開下列成員。

建構函式

  名稱 說明
公用方法 HttpClientConnection Initializes a new instance of the HttpClientConnection class.

上層

屬性

  名稱 說明
公用屬性 BypassProxyOnLocal Gets or sets a Boolean that indicates if the proxy server is configured to use credentials and bypass the proxy server and use local addresses instead.
公用屬性 Certificate Gets or sets a byte array that represents the actual X.509 binary encoding of the certificate.
公用屬性 CertificateIdentifier Gets or sets the X.509 certificate identifier.
公用屬性 ChunkSize Gets or sets the value that indicates the minimum number of bytes to retrieve from or send to the server during a read/write operation.
公用屬性 ProxyBypassList Gets or sets the addresses that do not use a proxy server.
公用屬性 ProxyDomain Gets or sets the domain setting that is used to log on to the proxy.
公用屬性 ProxyPassword Sets the password used to log on to the proxy. This property is read-only.
公用屬性 ProxyURL Gets or sets the URL that specifies the location of the proxy.
公用屬性 ProxyUserName Gets or sets the username that is used when logging on to the proxy.
公用屬性 ServerDomain Gets or sets the domain used to log on to the server.
公用屬性 ServerPassword Sets the password used to log on to the server. This property is write-only.
公用屬性 ServerURL Gets or sets the URL that specifies the location of the server.
公用屬性 ServerUserName Gets or sets the username used to log on to the server.
公用屬性 Timeout Gets or sets the number of seconds after which the HTTP operation times out.
公用屬性 UseProxy Gets or sets a Boolean that indicates whether or not the connection will use a proxy.
公用屬性 UseProxyCredentials Gets or sets a Boolean that indicates whether or not the connection will use network credentials.
公用屬性 UseSecureConnection Gets or sets a Boolean that indicates whether the connection is HTTPS or HTTP.
公用屬性 UseServerCredentials Gets or sets a Boolean that indicates whether the connection uses network credentials.

上層

方法

  名稱 說明
公用方法 Clone Returns a new connection object that has the exact same state as the one being cloned.
公用方法 DownloadData Returns a byte array that contains the data downloaded from the resource that was specified in the ServerURL property.
公用方法 DownloadFile Downloads data from the resource specified by ServerURL property to a local file.
公用方法 Equals Determines whether two object instances are equal. (繼承自 DtsObject。)
公用方法 GetHashCode Returns the hash code for this instance. (繼承自 DtsObject。)
公用方法 GetProxyPassword Gets the proxy password.
公用方法 GetServerPassword Gets the server password.
公用方法 GetType (繼承自 Object。)
公用方法 LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
公用方法 OpenRead Opens a readable stream for the data to be downloaded from the resource specified by the ServerURL property.
公用方法 SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
公用方法 ShowCertificateDialog Displays the Windows certificate information dialog box.
公用方法 ToString (繼承自 Object。)

上層

備註

The HTTP connection manager allows packages to access resources over HTTP, allowing tasks such as extracting data from a Web service and operating on it. The HTTP connection manager encapsulates the functionality of creating and maintaining a HTTP connection. The HTTP connection manager includes custom properties, in addition to the properties that are common to all connection managers. The HTTP connection manager provides the runtime with a connection to a HTTP server that acts as a source. When you create an HTTP connection manager, you can specify properties specific to that connection and test to see if the connection is alive. After the connection has been created, the connection can be used by various tasks in the runtime.

This class inherits from DtsObject and implements IDTSPersist.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dts.Runtime 命名空間