WCF-Xtensions Class Reference for .NET
AllowCookies Property (LiteHttpTransportElement)






Gets or sets a value that indicates whether the client accepts cookies and propagates them on future requests.
Syntax
[System.Configuration.ConfigurationProperty(Name="allowCookies", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public System.bool AllowCookies {get; set;}
public read-write property AllowCookies: System.Boolean; 
System.Configuration.ConfigurationPropertyAttribute(Name="allowCookies", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=, 
   IsRequired=, 
   IsKey=)
public function get,set AllowCookies : System.boolean
[System.Configuration.ConfigurationProperty(Name="allowCookies", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public: __property System.bool get_AllowCookies();
public: __property void set_AllowCookies( 
   System.bool value
);
[System.Configuration.ConfigurationProperty(Name="allowCookies", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public:
property System.bool AllowCookies {
   System.bool get();
   void set (    System.bool value);
}
'Declaration
 
<System.Configuration.ConfigurationPropertyAttribute(Name="allowCookies", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=False, 
   IsRequired=False, 
   IsKey=False)>
Public Property AllowCookies As System.Boolean
 
'Usage
 
Dim instance As LiteHttpTransportElement
Dim value As System.Boolean
 
instance.AllowCookies = value
 
value = instance.AllowCookies

Property Value

true if cookies are allowed; otherwise, false. The default is false.
Remarks
This property is provided as a convenience for interacting with ASMX Web services that use cookies to make sure that the cookies returned from the server are automatically copied to all future client requests for that service.
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

LiteHttpTransportElement Class
LiteHttpTransportElement Members

Send Feedback