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
- SiteMapNode.cs
- ByteRangeDownloader.cs
- TabItemWrapperAutomationPeer.cs
- InfiniteIntConverter.cs
- ItemPager.cs
- FlowDocumentReader.cs
- Int32Converter.cs
- CodeTypeMember.cs
- Control.cs
- CalendarSelectionChangedEventArgs.cs
- DocumentScope.cs
- CharacterMetrics.cs
- ObjectAnimationBase.cs
- SafeEventHandle.cs
- StatusBarPanelClickEvent.cs
- SQLChars.cs
- XsdDateTime.cs
- TraceUtils.cs
- PathGradientBrush.cs
- ResourceKey.cs
- GlobalProxySelection.cs
- ControlPaint.cs
- RadioButton.cs
- DesignerAdapterAttribute.cs
- RequestTimeoutManager.cs
- CategoryGridEntry.cs
- AssemblyBuilderData.cs
- ConnectionStringsExpressionBuilder.cs
- ObjectCloneHelper.cs
- ReachPrintTicketSerializerAsync.cs
- ColumnResizeUndoUnit.cs
- ToolStripLocationCancelEventArgs.cs
- XmlNodeChangedEventArgs.cs
- CrossSiteScriptingValidation.cs
- DynamicRenderer.cs
- SetterBase.cs
- PersonalizationStateQuery.cs
- TransactionFlowAttribute.cs
- ApplicationInterop.cs
- SoapRpcMethodAttribute.cs
- IRCollection.cs
- PolicyVersionConverter.cs
- ByteKeyFrameCollection.cs
- SqlCommandSet.cs
- DataMemberListEditor.cs
- UserControl.cs
- PropertyEmitterBase.cs
- NotImplementedException.cs
- DecimalConstantAttribute.cs
- MSAAEventDispatcher.cs
- ConfigurationValidatorBase.cs
- SafeProcessHandle.cs
- MaskInputRejectedEventArgs.cs
- DrawToolTipEventArgs.cs
- SchemaTypeEmitter.cs
- ClientConvert.cs
- GenericArgumentsUpdater.cs
- FontResourceCache.cs
- ChameleonKey.cs
- XPathNavigatorKeyComparer.cs
- TreeWalkHelper.cs
- ContractTypeNameCollection.cs
- ClientEventManager.cs
- BeginEvent.cs
- HttpApplicationFactory.cs
- CodeExporter.cs
- EmptyCollection.cs
- Int32RectValueSerializer.cs
- StylusPoint.cs
- ACE.cs
- ConnectionManagementElement.cs
- CodeTypeMemberCollection.cs
- SecureConversationServiceElement.cs
- CodeExpressionCollection.cs
- TableLayoutStyleCollection.cs
- EUCJPEncoding.cs
- XmlSchemaAttributeGroupRef.cs
- X509CertificateChain.cs
- DigitalSignatureProvider.cs
- CommandTreeTypeHelper.cs
- WindowsListViewScroll.cs
- HtmlFormParameterWriter.cs
- ParserHooks.cs
- ExpressionEvaluator.cs
- TextBoxAutomationPeer.cs
- FormsIdentity.cs
- FormatControl.cs
- EventBuilder.cs
- HandleExceptionArgs.cs
- MonikerUtility.cs
- SnapshotChangeTrackingStrategy.cs
- ProjectionPlanCompiler.cs
- StrokeNodeOperations2.cs
- HuffmanTree.cs
- BoundField.cs
- StdRegProviderWrapper.cs
- Evaluator.cs
- MLangCodePageEncoding.cs
- RegularExpressionValidator.cs
- XmlToDatasetMap.cs