WCF-Xtensions Class Reference for Mono
KeepAliveEnabled Property (WcfXTransportSettingsElement)






Gets or sets a value indicating whether to make a persistent connection to a service endpoint.
Syntax
'Declaration
 
<System.Configuration.ConfigurationPropertyAttribute(Name="keepAliveEnabled", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=False, 
   IsRequired=False, 
   IsKey=False)>
Public Property KeepAliveEnabled As System.Boolean
'Usage
 
Dim instance As WcfXTransportSettingsElement
Dim value As System.Boolean
 
instance.KeepAliveEnabled = value
 
value = instance.KeepAliveEnabled
[System.Configuration.ConfigurationProperty(Name="keepAliveEnabled", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public System.bool KeepAliveEnabled {get; set;}
public read-write property KeepAliveEnabled: System.Boolean; 
System.Configuration.ConfigurationPropertyAttribute(Name="keepAliveEnabled", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=, 
   IsRequired=, 
   IsKey=)
public function get,set KeepAliveEnabled : System.boolean
[System.Configuration.ConfigurationProperty(Name="keepAliveEnabled", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public: __property System.bool get_KeepAliveEnabled();
public: __property void set_KeepAliveEnabled( 
   System.bool value
);
[System.Configuration.ConfigurationProperty(Name="keepAliveEnabled", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public:
property System.bool KeepAliveEnabled {
   System.bool get();
   void set (    System.bool value);
}
Remarks
Set this property to true to send a Connection HTTP header with the value Keep-alive. A client uses this property to indicate a preference for persistent connections. When this property is true, the connection that the client makes to a service endpoint is persistent if the service endpoint supports that.

This member is not available in Silverlight 4, Silverlight 3, .NET Compact Framework 3.5.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WcfXTransportSettingsElement Class
WcfXTransportSettingsElement Members

Send Feedback