Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / HttpCookiesSection.cs / 1305376 / 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; 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; 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
- Int16Storage.cs
- GraphicsContext.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XpsS0ValidatingLoader.cs
- WindowsListBox.cs
- FixedFindEngine.cs
- LambdaExpression.cs
- DesignerTransaction.cs
- CacheMemory.cs
- NetMsmqBindingCollectionElement.cs
- ClientSession.cs
- DependencyStoreSurrogate.cs
- OdbcDataReader.cs
- ListView.cs
- DiagnosticsConfigurationHandler.cs
- AspProxy.cs
- RenderContext.cs
- CopyNodeSetAction.cs
- IISUnsafeMethods.cs
- InternalRelationshipCollection.cs
- DependencyPropertyDescriptor.cs
- SemaphoreSecurity.cs
- CultureTable.cs
- DBSchemaRow.cs
- URIFormatException.cs
- ObjectPropertyMapping.cs
- QilTypeChecker.cs
- IDispatchConstantAttribute.cs
- ComponentChangedEvent.cs
- EnumerableWrapperWeakToStrong.cs
- Vector.cs
- NativeWindow.cs
- DataSourceCacheDurationConverter.cs
- StringPropertyBuilder.cs
- EndpointDiscoveryMetadataCD1.cs
- Binding.cs
- DataSourceHelper.cs
- NetMsmqBinding.cs
- TimelineGroup.cs
- PagerStyle.cs
- InternalDuplexChannelListener.cs
- SiteMapDataSource.cs
- DataGridPagerStyle.cs
- ToolStripProgressBar.cs
- ScriptingAuthenticationServiceSection.cs
- LoaderAllocator.cs
- CacheOutputQuery.cs
- StdValidatorsAndConverters.cs
- PropertyTab.cs
- MediaPlayerState.cs
- XPathConvert.cs
- SHA512.cs
- datacache.cs
- ProxyElement.cs
- XmlnsCache.cs
- DatatypeImplementation.cs
- ReaderContextStackData.cs
- DataPagerCommandEventArgs.cs
- CodeDelegateInvokeExpression.cs
- EditorPartCollection.cs
- GlyphRunDrawing.cs
- ClientSideProviderDescription.cs
- TextSelectionProcessor.cs
- SqlTypesSchemaImporter.cs
- RoutedPropertyChangedEventArgs.cs
- ConsumerConnectionPointCollection.cs
- SqlTrackingService.cs
- SiteMapProvider.cs
- KeyManager.cs
- FilteredDataSetHelper.cs
- SafeSecurityHandles.cs
- MetadataItemCollectionFactory.cs
- ConfigurationValidatorAttribute.cs
- ThreadNeutralSemaphore.cs
- EntitySet.cs
- StatusBarAutomationPeer.cs
- Size.cs
- HttpDebugHandler.cs
- AsymmetricSignatureDeformatter.cs
- TemplateKey.cs
- IssuanceTokenProviderBase.cs
- ProxyWebPartConnectionCollection.cs
- TTSEvent.cs
- ContentPropertyAttribute.cs
- ModifierKeysValueSerializer.cs
- DispatcherTimer.cs
- Timer.cs
- RenameRuleObjectDialog.Designer.cs
- AttributeQuery.cs
- CompareInfo.cs
- SrgsRulesCollection.cs
- ToolStripSeparator.cs
- ArglessEventHandlerProxy.cs
- VideoDrawing.cs
- Comparer.cs
- CustomWebEventKey.cs
- TreeNodeCollection.cs
- TabPanel.cs
- AssemblyHash.cs
- MDIWindowDialog.cs