Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / HttpCookiesSection.cs / 2 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLChars.cs
- ParentQuery.cs
- WebPartConnection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CommandExpr.cs
- AutoCompleteStringCollection.cs
- SiteMapPath.cs
- IPipelineRuntime.cs
- XmlAttributes.cs
- DirectoryObjectSecurity.cs
- StorageEntityTypeMapping.cs
- TimeSpanSecondsConverter.cs
- StateChangeEvent.cs
- RadioButtonAutomationPeer.cs
- SubstitutionList.cs
- XmlNodeReader.cs
- SqlDataSourceConfigureSortForm.cs
- HttpListenerResponse.cs
- QuaternionConverter.cs
- RegexCode.cs
- SID.cs
- ISAPIRuntime.cs
- DbConnectionPoolGroupProviderInfo.cs
- SendActivity.cs
- ToolBar.cs
- SimpleTableProvider.cs
- ScriptManagerProxy.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SiteIdentityPermission.cs
- CancelEventArgs.cs
- OleDbParameterCollection.cs
- DataBoundControl.cs
- SocketInformation.cs
- DateTimeFormat.cs
- MD5CryptoServiceProvider.cs
- ValueUtilsSmi.cs
- QueryExpr.cs
- TemplateXamlParser.cs
- StylusPointCollection.cs
- SingleStorage.cs
- EnumerableValidator.cs
- Zone.cs
- XPathAncestorIterator.cs
- BasicKeyConstraint.cs
- ProviderBase.cs
- PerspectiveCamera.cs
- Operators.cs
- DataColumnChangeEvent.cs
- EnterpriseServicesHelper.cs
- CardSpacePolicyElement.cs
- SoapFault.cs
- MetafileHeaderEmf.cs
- SharedStatics.cs
- SapiInterop.cs
- ButtonDesigner.cs
- HtmlElementCollection.cs
- HostVisual.cs
- Group.cs
- DataControlFieldHeaderCell.cs
- XslAstAnalyzer.cs
- ScriptReferenceBase.cs
- NavigationProperty.cs
- ProviderCollection.cs
- UserControlDesigner.cs
- MediaContextNotificationWindow.cs
- SEHException.cs
- DataServiceStreamResponse.cs
- ImpersonationOption.cs
- ReadWriteControlDesigner.cs
- ByteRangeDownloader.cs
- LogManagementAsyncResult.cs
- BufferModeSettings.cs
- XmlILModule.cs
- XmlAtomicValue.cs
- Aggregates.cs
- PageContent.cs
- Image.cs
- XmlAttributes.cs
- TextPointerBase.cs
- ParameterElement.cs
- XmlSerializerFactory.cs
- AssemblyAttributes.cs
- VisualTarget.cs
- TargetInvocationException.cs
- SmiMetaData.cs
- SqlAliaser.cs
- CodeSnippetTypeMember.cs
- Button.cs
- SqlDependencyUtils.cs
- ScrollProviderWrapper.cs
- ImageSource.cs
- DbException.cs
- MsmqIntegrationProcessProtocolHandler.cs
- PasswordTextContainer.cs
- RuntimeHandles.cs
- SQLRoleProvider.cs
- HttpInputStream.cs
- BitmapEffectGroup.cs
- COM2ExtendedBrowsingHandler.cs
- AppSettingsSection.cs