Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / HttpCookiesSection.cs / 1 / HttpCookiesSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class HttpCookiesSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propHttpOnlyCookies = new ConfigurationProperty("httpOnlyCookies", typeof(bool), false, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propRequireSSL = new ConfigurationProperty("requireSSL", typeof(bool), false, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propDomain = new ConfigurationProperty("domain", typeof(string), String.Empty, ConfigurationPropertyOptions.None); /**/ static HttpCookiesSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propHttpOnlyCookies); _properties.Add(_propRequireSSL); _properties.Add(_propDomain); } public HttpCookiesSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("httpOnlyCookies", DefaultValue = false)] public bool HttpOnlyCookies { get { return (bool)base[_propHttpOnlyCookies]; } set { base[_propHttpOnlyCookies] = value; } } [ConfigurationProperty("requireSSL", DefaultValue = false)] public bool RequireSSL { get { return (bool)base[_propRequireSSL]; } set { base[_propRequireSSL] = value; } } [ConfigurationProperty("domain", DefaultValue = "")] public string Domain { get { return (string)base[_propDomain]; } set { base[_propDomain] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class HttpCookiesSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propHttpOnlyCookies = new ConfigurationProperty("httpOnlyCookies", typeof(bool), false, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propRequireSSL = new ConfigurationProperty("requireSSL", typeof(bool), false, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propDomain = new ConfigurationProperty("domain", typeof(string), String.Empty, ConfigurationPropertyOptions.None); /**/ static HttpCookiesSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propHttpOnlyCookies); _properties.Add(_propRequireSSL); _properties.Add(_propDomain); } public HttpCookiesSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("httpOnlyCookies", DefaultValue = false)] public bool HttpOnlyCookies { get { return (bool)base[_propHttpOnlyCookies]; } set { base[_propHttpOnlyCookies] = value; } } [ConfigurationProperty("requireSSL", DefaultValue = false)] public bool RequireSSL { get { return (bool)base[_propRequireSSL]; } set { base[_propRequireSSL] = value; } } [ConfigurationProperty("domain", DefaultValue = "")] public string Domain { get { return (string)base[_propDomain]; } set { base[_propDomain] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ParameterInfo.cs
- BitmapEffectGroup.cs
- CopyNodeSetAction.cs
- TaskExtensions.cs
- Line.cs
- GetBrowserTokenRequest.cs
- GeometryCollection.cs
- ServiceContractGenerator.cs
- CodeSnippetStatement.cs
- AnimationClock.cs
- DataSourceXmlElementAttribute.cs
- DesignerActionService.cs
- ClickablePoint.cs
- ImplicitInputBrush.cs
- NullableFloatSumAggregationOperator.cs
- Style.cs
- DataGridViewRowPostPaintEventArgs.cs
- WindowsGraphics.cs
- MappingSource.cs
- TextElement.cs
- DataGridCellEditEndingEventArgs.cs
- ConfigXmlText.cs
- EncoderParameter.cs
- Icon.cs
- WorkflowServiceHost.cs
- RelationshipManager.cs
- ProcessHostConfigUtils.cs
- HttpGetServerProtocol.cs
- DateTimeValueSerializer.cs
- UdpTransportSettingsElement.cs
- MasterPageCodeDomTreeGenerator.cs
- ProxyHelper.cs
- RequestStatusBarUpdateEventArgs.cs
- WebDescriptionAttribute.cs
- HttpTransportBindingElement.cs
- ByteStream.cs
- TransformCollection.cs
- SymbolTable.cs
- WsatConfiguration.cs
- IisTraceWebEventProvider.cs
- DesignerLoader.cs
- TaskScheduler.cs
- ScriptDescriptor.cs
- CatalogPartChrome.cs
- _SpnDictionary.cs
- RegionIterator.cs
- AssemblyCache.cs
- ListViewTableRow.cs
- TableProviderWrapper.cs
- TableCellAutomationPeer.cs
- PenThreadWorker.cs
- BasePropertyDescriptor.cs
- InvalidPrinterException.cs
- CachingHintValidation.cs
- BindingSourceDesigner.cs
- DayRenderEvent.cs
- XmlWriter.cs
- MachineKeySection.cs
- WorkflowRuntimeService.cs
- MimeTypePropertyAttribute.cs
- FixedSOMTableRow.cs
- shaperfactoryquerycacheentry.cs
- AutomationTextAttribute.cs
- ItemContainerGenerator.cs
- PerformanceCounterCategory.cs
- MatrixConverter.cs
- ReachPageContentSerializerAsync.cs
- ObjectParameterCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- MatrixCamera.cs
- Convert.cs
- DeviceContexts.cs
- DocumentViewerHelper.cs
- CharStorage.cs
- ActiveXMessageFormatter.cs
- DataGridCell.cs
- OptimalTextSource.cs
- XmlUrlResolver.cs
- XmlSchemaIdentityConstraint.cs
- ListViewGroupConverter.cs
- PageHandlerFactory.cs
- TextChangedEventArgs.cs
- DesignerOptionService.cs
- Helper.cs
- RuleSettings.cs
- SurrogateEncoder.cs
- ClientApiGenerator.cs
- Internal.cs
- RadioButton.cs
- Variable.cs
- DSASignatureDeformatter.cs
- BinHexEncoder.cs
- IntSecurity.cs
- GAC.cs
- DocumentSequenceHighlightLayer.cs
- Line.cs
- ObjectTypeMapping.cs
- InstanceCreationEditor.cs
- IPEndPointCollection.cs
- ColorPalette.cs