SoapHttpChannelOptions.Connection Property

Gets or sets the value of the Connection HTTP header.

Namespace: Microsoft.Web.Services2.Messaging
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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^);
}
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 Connectionheader.

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 Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SoapHttpChannelOptions Class
Microsoft.Web.Services2.Messaging Namespace

Other Resources

SoapHttpChannelOptions Members