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
- PropertyDescriptorCollection.cs
- ClientOptions.cs
- EditorPartChrome.cs
- CqlWriter.cs
- ListControlConvertEventArgs.cs
- SecurityTokenProviderContainer.cs
- Label.cs
- Evidence.cs
- ObjectDataSourceChooseMethodsPanel.cs
- CasesDictionary.cs
- ColorMap.cs
- InternalResources.cs
- GeneralTransform3DTo2DTo3D.cs
- Label.cs
- SecureUICommand.cs
- IntegrationExceptionEventArgs.cs
- SafeJobHandle.cs
- MatrixAnimationBase.cs
- XmlComment.cs
- ParallelDesigner.cs
- ClassDataContract.cs
- _SslSessionsCache.cs
- ConfigurationStrings.cs
- AsyncResult.cs
- Transform.cs
- Container.cs
- DragCompletedEventArgs.cs
- SystemColors.cs
- AssemblyAssociatedContentFileAttribute.cs
- AdornerDecorator.cs
- InputLangChangeEvent.cs
- TypeResolvingOptionsAttribute.cs
- DatagramAdapter.cs
- SafeCryptoHandles.cs
- TypeValidationEventArgs.cs
- TreeViewHitTestInfo.cs
- WindowsPrincipal.cs
- _NativeSSPI.cs
- EventLogPermissionEntry.cs
- PolyBezierSegment.cs
- SupportingTokenSecurityTokenResolver.cs
- RelatedImageListAttribute.cs
- SamlAuthorityBinding.cs
- ObjectSpanRewriter.cs
- WebBrowserContainer.cs
- CompilerCollection.cs
- SynchronizedInputPattern.cs
- OptionUsage.cs
- Cursors.cs
- CodeArgumentReferenceExpression.cs
- SiteMapProvider.cs
- RadioButtonPopupAdapter.cs
- FieldBuilder.cs
- SmtpCommands.cs
- Decorator.cs
- RenderData.cs
- designeractionbehavior.cs
- NullRuntimeConfig.cs
- Vector3D.cs
- DynamicDocumentPaginator.cs
- ResourcePart.cs
- OdbcParameterCollection.cs
- Evidence.cs
- ConfigurationException.cs
- OdbcConnectionString.cs
- BitmapSourceSafeMILHandle.cs
- CommandDesigner.cs
- DbConnectionFactory.cs
- MethodBuilder.cs
- Psha1DerivedKeyGenerator.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataContractSerializer.cs
- ActivitiesCollection.cs
- InlinedAggregationOperatorEnumerator.cs
- TextTreeNode.cs
- WmfPlaceableFileHeader.cs
- PcmConverter.cs
- TargetParameterCountException.cs
- SqlDataAdapter.cs
- MergeFailedEvent.cs
- AccessedThroughPropertyAttribute.cs
- ContainsRowNumberChecker.cs
- UpdateTracker.cs
- IntersectQueryOperator.cs
- StringCollection.cs
- TabItem.cs
- FontFamilyIdentifier.cs
- KeyBinding.cs
- SqlBulkCopyColumnMappingCollection.cs
- StringHelper.cs
- TrackingMemoryStreamFactory.cs
- TextLineResult.cs
- CreateUserWizardDesigner.cs
- DocumentPage.cs
- HostProtectionPermission.cs
- ImageAttributes.cs
- WorkflowApplication.cs
- wmiprovider.cs
- CustomAttributeBuilder.cs
- Rfc2898DeriveBytes.cs