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
- DbMetaDataFactory.cs
- FixedTextPointer.cs
- DrawingGroup.cs
- PackageRelationship.cs
- NativeMethodsOther.cs
- XmlAnyElementAttributes.cs
- SemaphoreFullException.cs
- BindingBase.cs
- AssociationSetMetadata.cs
- GlobalProxySelection.cs
- SymmetricCryptoHandle.cs
- DbException.cs
- NativeMethods.cs
- WinEventTracker.cs
- IdentityNotMappedException.cs
- SecurityElement.cs
- TextTreePropertyUndoUnit.cs
- SecurityPermission.cs
- Timer.cs
- BulletChrome.cs
- ActivityTrace.cs
- ResourceCollectionInfo.cs
- MaskedTextBoxTextEditor.cs
- MemberAccessException.cs
- FormsAuthenticationModule.cs
- CheckBoxStandardAdapter.cs
- ITextView.cs
- CrossSiteScriptingValidation.cs
- SingleAnimation.cs
- HtmlWindowCollection.cs
- ThemeableAttribute.cs
- Grant.cs
- PerformanceCounter.cs
- Track.cs
- DataGridItemCollection.cs
- HelpOperationInvoker.cs
- TreeViewEvent.cs
- QueryCacheEntry.cs
- RadioButtonList.cs
- IsolatedStorageFileStream.cs
- RtfToXamlReader.cs
- GlobalizationAssembly.cs
- DataGridViewButtonColumn.cs
- Compiler.cs
- CodePageEncoding.cs
- TemplateControl.cs
- EntityContainer.cs
- FormattedTextSymbols.cs
- InvalidOperationException.cs
- QueryContext.cs
- DataErrorValidationRule.cs
- PropertyEmitterBase.cs
- ReadContentAsBinaryHelper.cs
- DataGridViewCellCancelEventArgs.cs
- SQLSingle.cs
- DbDataRecord.cs
- ComponentRenameEvent.cs
- Int64Storage.cs
- ProfileEventArgs.cs
- Dictionary.cs
- Glyph.cs
- XmlQueryStaticData.cs
- DbParameterCollectionHelper.cs
- DefaultProxySection.cs
- WrappedIUnknown.cs
- CodeTypeMember.cs
- StringArrayConverter.cs
- XDRSchema.cs
- RuleEngine.cs
- FileDetails.cs
- DateTimeFormatInfo.cs
- ColumnResizeAdorner.cs
- FacetChecker.cs
- TreeViewItem.cs
- IdleTimeoutMonitor.cs
- TargetConverter.cs
- PropertyRef.cs
- DirectionalLight.cs
- ModuleConfigurationInfo.cs
- DataServiceRequest.cs
- Span.cs
- PeerResolverSettings.cs
- UnmanagedMemoryStream.cs
- NotEqual.cs
- NamespaceInfo.cs
- SqlDeflator.cs
- GridViewRowPresenterBase.cs
- AdCreatedEventArgs.cs
- ShaderEffect.cs
- CachingHintValidation.cs
- TTSEvent.cs
- Options.cs
- DataGridColumnCollection.cs
- SimpleType.cs
- Pointer.cs
- SHA512Managed.cs
- DataGridViewLayoutData.cs
- DataGridViewComboBoxCell.cs
- ContentFileHelper.cs
- BinaryParser.cs