Partager via


SoapHttpChannelOptions.Connection Property

Gets or sets the value of the Connection HTTP header.

Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim soapHttpChannelOptions1 As SoapHttpChannelOptions

Dim returnValue As String
returnValue = soapHttpChannelOptions1.Connection

Dim sampleValue As String
soapHttpChannelOptions1.Connection = sampleValue

Syntax

'Declaration
Public Property Connection() As String
public string Connection {get; set;}
public:
property String^ Connection {
    String^ get();
    void set(String^ value);
}
public System.String get_Connection();
public void set_Connection(System.String);
public function get Connection() : String;
public function set Connection(String);

Property Value

The value of the Connection HTTP header. The default value is null.

Remarks

The request sends the Connection property to the Internet resource as the Connection HTTP header. If KeepAlive is true, the value "Keep-alive" is appended to the end of the Connection header.

To clear the Connection HTTP header, set the Connection property to null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SoapHttpChannelOptions Class
SoapHttpChannelOptions Members
Microsoft.Web.Services3.Messaging Namespace