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
- TraceHandlerErrorFormatter.cs
- Triplet.cs
- FormViewPagerRow.cs
- SqlParameter.cs
- UnsafeNativeMethods.cs
- QuotedPrintableStream.cs
- ValueType.cs
- IconConverter.cs
- ColumnReorderedEventArgs.cs
- OneToOneMappingSerializer.cs
- DefinitionProperties.cs
- ConfigurationStrings.cs
- RequestUriProcessor.cs
- UnsettableComboBox.cs
- Compiler.cs
- CodeExpressionCollection.cs
- InternalResources.cs
- DatagridviewDisplayedBandsData.cs
- SQLDecimalStorage.cs
- Point3D.cs
- SuppressIldasmAttribute.cs
- MetaTableHelper.cs
- RangeValidator.cs
- EasingFunctionBase.cs
- FactoryRecord.cs
- PropertyPathWorker.cs
- Stylesheet.cs
- SafeNativeMethods.cs
- DocobjHost.cs
- AdapterDictionary.cs
- DesignerAttribute.cs
- MarkupWriter.cs
- SolidBrush.cs
- Tuple.cs
- HtmlEmptyTagControlBuilder.cs
- RtfNavigator.cs
- SimpleMailWebEventProvider.cs
- Wrapper.cs
- CommonXSendMessage.cs
- ReadOnlyCollectionBase.cs
- ParameterReplacerVisitor.cs
- Normalizer.cs
- ToolStripTemplateNode.cs
- IntegrationExceptionEventArgs.cs
- XmlSecureResolver.cs
- DataBindingCollection.cs
- GuidTagList.cs
- RangeValueProviderWrapper.cs
- EntityWithKeyStrategy.cs
- CodeAccessSecurityEngine.cs
- OdbcHandle.cs
- SQLChars.cs
- EdmItemCollection.cs
- MouseOverProperty.cs
- DirectoryNotFoundException.cs
- DataGridRowsPresenter.cs
- Path.cs
- ConnectionProviderAttribute.cs
- ELinqQueryState.cs
- LayoutUtils.cs
- ToolStripItem.cs
- BaseCollection.cs
- Transactions.cs
- PersonalizationStateInfoCollection.cs
- HandlerFactoryWrapper.cs
- HttpApplicationFactory.cs
- IntMinMaxAggregationOperator.cs
- BatchParser.cs
- CaseCqlBlock.cs
- DesignTimeVisibleAttribute.cs
- FormViewCommandEventArgs.cs
- ClientConvert.cs
- Ray3DHitTestResult.cs
- HwndMouseInputProvider.cs
- PolyLineSegment.cs
- TreeNode.cs
- InertiaRotationBehavior.cs
- nulltextcontainer.cs
- XdrBuilder.cs
- HtmlButton.cs
- TreeNodeCollection.cs
- BuildProviderUtils.cs
- ProgressiveCrcCalculatingStream.cs
- ContextInformation.cs
- RuntimeEnvironment.cs
- Rect3D.cs
- DiagnosticTrace.cs
- ErrorTolerantObjectWriter.cs
- PowerStatus.cs
- HttpWebResponse.cs
- XmlCharacterData.cs
- SspiHelper.cs
- Icon.cs
- InvokeFunc.cs
- TemplateBamlRecordReader.cs
- WmpBitmapDecoder.cs
- DataContractSerializerSection.cs
- RecordConverter.cs
- Sequence.cs
- GridViewItemAutomationPeer.cs