Partilhar via


Classe 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.

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)

Sintaxe

'Declaração
<SerializableAttribute> _
Public NotInheritable Class HttpClientConnection _
    Inherits DtsObject _
    Implements IDTSPersist
'Uso
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

O tipo HttpClientConnection expõe os membros a seguir.

Construtores

  Nome Descrição
Método público HttpClientConnection Initializes a new instance of the HttpClientConnection class.

Início

Propriedades

  Nome Descrição
Propriedade pública 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.
Propriedade pública Certificate Gets or sets a byte array that represents the actual X.509 binary encoding of the certificate.
Propriedade pública CertificateIdentifier Gets or sets the X.509 certificate identifier.
Propriedade pública 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.
Propriedade pública ProxyBypassList Gets or sets the addresses that do not use a proxy server.
Propriedade pública ProxyDomain Gets or sets the domain setting that is used to log on to the proxy.
Propriedade pública ProxyPassword Returns the password used to log on to the proxy. This property is read-only.
Propriedade pública ProxyURL Gets or sets the URL that specifies the location of the proxy.
Propriedade pública ProxyUserName Gets or sets the username that is used when logging on to the proxy.
Propriedade pública ServerDomain Gets or sets the domain used to log on to the server.
Propriedade pública ServerPassword Sets the password used to log on to the server. This property is write-only.
Propriedade pública ServerURL Gets or sets the URL that specifies the location of the server.
Propriedade pública ServerUserName Gets or sets the username used to log on to the server.
Propriedade pública Timeout Gets or sets the number of seconds after which the HTTP operation times out.
Propriedade pública UseProxy Gets or sets a Boolean that indicates whether or not the connection will use a proxy.
Propriedade pública UseProxyCredentials Gets or sets a Boolean that indicates whether or not the connection will use network credentials.
Propriedade pública UseSecureConnection Gets or sets a Boolean that indicates whether the connection is HTTPS or HTTP.
Propriedade pública UseServerCredentials Gets or sets a Boolean that indicates whether the connection uses network credentials.

Início

Métodos

  Nome Descrição
Método público Clone Returns a new connection object that has the exact same state as the one being cloned.
Método público DownloadData Returns a byte array that contains the data downloaded from the resource that was specified in the ServerURL property.
Método público DownloadFile Downloads data from the resource specified by ServerURL property to a local file.
Método público Equals Determines whether two object instances are equal. (Herdado de DtsObject.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode Returns the hash code for this instance. (Herdado de DtsObject.)
Método público GetProxyPassword Gets the proxy password.
Método público GetServerPassword Gets the server password.
Método público GetType (Herdado de Object.)
Método público LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method.
Método protegido MemberwiseClone (Herdado de Object.)
Método público OpenRead Opens a readable stream for the data to be downloaded from the resource specified by the ServerURL property.
Método público SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method.
Método público ShowCertificateDialog Displays the Windows certificate information dialog box.
Método público ToString (Herdado de Object.)

Início

Comentários

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.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência