SoapHttpChannelOptions.KeepAlive Property
Gets or sets a value indicating whether to make a persistent connection to the Internet resource.
Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim soapHttpChannelOptions1 As SoapHttpChannelOptions
Dim returnValue As Boolean
returnValue = soapHttpChannelOptions1.KeepAlive
Dim sampleValue As Boolean
soapHttpChannelOptions1.KeepAlive = sampleValue
Syntax
'Declaration
Public Property KeepAlive() As Boolean
public bool KeepAlive {get; set;}
public:
property bool KeepAlive {
bool get();
void set(bool value);
}
public boolean get_KeepAlive();
public void set_KeepAlive(boolean);
public function get KeepAlive() : Boolean;
public function set KeepAlive(Boolean);
Property Value
true if the request to the Internet resource should contain a Connection HTTP header with the value Keep-alive; otherwise, false. The default is true.
Remarks
Set this property to true to send an Connection HTTP header with the value Keep-alive. An application uses KeepAlive to indicate a preference for persistent connections. When the KeepAlive property is true, the application makes persistent connections to the servers that support them.
Note
When using HTTP/1.1, Keep-Alive is on by default. Setting KeepAlive to false may result in sending a Connection: Close header to the server.
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