Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ContainerParagraph.cs
- TableRowCollection.cs
- SerializationHelper.cs
- Converter.cs
- SByteStorage.cs
- EntitySetRetriever.cs
- SoapIgnoreAttribute.cs
- Column.cs
- NopReturnReader.cs
- wgx_sdk_version.cs
- PeerInputChannel.cs
- Camera.cs
- ReverseInheritProperty.cs
- WebPartVerbsEventArgs.cs
- ProfileSettingsCollection.cs
- SourceFileBuildProvider.cs
- TextViewBase.cs
- XmlIlVisitor.cs
- LinqToSqlWrapper.cs
- ExpressionBuilder.cs
- DataGridPageChangedEventArgs.cs
- InplaceBitmapMetadataWriter.cs
- Models.cs
- ValueSerializer.cs
- LinqDataSourceStatusEventArgs.cs
- ActivityInfo.cs
- ModelVisual3D.cs
- ChtmlTextWriter.cs
- TreeNode.cs
- DataGridViewCellConverter.cs
- BuildDependencySet.cs
- DateTimeOffsetStorage.cs
- PolicyLevel.cs
- SqlCacheDependencySection.cs
- XmlNamespaceMapping.cs
- XhtmlTextWriter.cs
- Material.cs
- MarshalByRefObject.cs
- GacUtil.cs
- PropertyPathConverter.cs
- CompositeControl.cs
- ListViewGroupItemCollection.cs
- StdValidatorsAndConverters.cs
- CutCopyPasteHelper.cs
- XmlSchemaImport.cs
- DbBuffer.cs
- LoadGrammarCompletedEventArgs.cs
- SafeFileMappingHandle.cs
- ParentControlDesigner.cs
- _LocalDataStoreMgr.cs
- ArrayHelper.cs
- DialogResultConverter.cs
- CardSpacePolicyElement.cs
- CompilerErrorCollection.cs
- RuntimeConfigLKG.cs
- SignHashRequest.cs
- IndicCharClassifier.cs
- UriTemplateVariablePathSegment.cs
- FieldMetadata.cs
- DialogResultConverter.cs
- UdpSocketReceiveManager.cs
- HtmlInputHidden.cs
- HttpResponse.cs
- LoadGrammarCompletedEventArgs.cs
- KeyValuePair.cs
- GridPatternIdentifiers.cs
- TrackingStringDictionary.cs
- DiscoveryRequestHandler.cs
- ResponseStream.cs
- ActivityTypeDesigner.xaml.cs
- PartialTrustVisibleAssemblyCollection.cs
- RegexReplacement.cs
- DataGridClipboardCellContent.cs
- SchemaTypeEmitter.cs
- Html32TextWriter.cs
- ServiceThrottlingBehavior.cs
- BlockUIContainer.cs
- AspNetHostingPermission.cs
- SQLChars.cs
- EmptyEnumerator.cs
- FieldNameLookup.cs
- XmlCustomFormatter.cs
- WindowsTab.cs
- FontNameConverter.cs
- SelectionUIService.cs
- OleDbRowUpdatingEvent.cs
- DeclaredTypeElement.cs
- ActiveXMessageFormatter.cs
- DragEvent.cs
- CLRBindingWorker.cs
- JournalEntryListConverter.cs
- InvalidWMPVersionException.cs
- TemplateComponentConnector.cs
- Module.cs
- MetricEntry.cs
- BinaryMessageFormatter.cs
- TreeNodeBindingCollection.cs
- ILGenerator.cs
- Root.cs
- EntityKeyElement.cs