Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / HttpCookiesSection.cs / 5 / 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
- StretchValidation.cs
- StringAnimationUsingKeyFrames.cs
- InputLanguageEventArgs.cs
- Environment.cs
- XamlTemplateSerializer.cs
- HttpRuntimeSection.cs
- WebBrowserHelper.cs
- BindingMemberInfo.cs
- DPAPIProtectedConfigurationProvider.cs
- WebConfigurationHostFileChange.cs
- LambdaReference.cs
- PropertyEntry.cs
- ColorDialog.cs
- MatrixKeyFrameCollection.cs
- XPathNavigatorKeyComparer.cs
- GradientBrush.cs
- SQLBytes.cs
- InheritanceContextHelper.cs
- PolicyException.cs
- DataRecordInternal.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ScriptServiceAttribute.cs
- WinFormsSpinner.cs
- QueryStatement.cs
- DrawListViewColumnHeaderEventArgs.cs
- ScriptServiceAttribute.cs
- DefaultProfileManager.cs
- ProfileProvider.cs
- WorkflowOperationAsyncResult.cs
- PeerCollaborationPermission.cs
- EditorPartCollection.cs
- SequenceNumber.cs
- PageBreakRecord.cs
- DataControlImageButton.cs
- ToolboxItem.cs
- IndentTextWriter.cs
- UnitySerializationHolder.cs
- QueueProcessor.cs
- HtmlInputButton.cs
- ChtmlTextWriter.cs
- BorderGapMaskConverter.cs
- Classification.cs
- safesecurityhelperavalon.cs
- WorkflowOwnershipException.cs
- RangeValidator.cs
- CheckBox.cs
- TraceContextEventArgs.cs
- RowsCopiedEventArgs.cs
- ByteStreamGeometryContext.cs
- ScrollBarRenderer.cs
- xamlnodes.cs
- MemoryFailPoint.cs
- XPathEmptyIterator.cs
- CodeParameterDeclarationExpression.cs
- StreamInfo.cs
- GenerateTemporaryAssemblyTask.cs
- ExpressionBindings.cs
- SafePipeHandle.cs
- Schema.cs
- OleDbPropertySetGuid.cs
- Trace.cs
- Point3DCollectionValueSerializer.cs
- EntityViewGenerator.cs
- HttpCacheVaryByContentEncodings.cs
- SessionStateUtil.cs
- XsltQilFactory.cs
- EntitySetBaseCollection.cs
- TextRunCacheImp.cs
- SQLResource.cs
- StatusBar.cs
- Vector3DAnimationBase.cs
- ContractMethodInfo.cs
- IHttpResponseInternal.cs
- ArrayExtension.cs
- EditorResources.cs
- GroupBoxAutomationPeer.cs
- PnrpPeerResolverElement.cs
- CheckBoxFlatAdapter.cs
- DataGridViewComboBoxColumn.cs
- DecimalMinMaxAggregationOperator.cs
- PrintPreviewGraphics.cs
- RadioButton.cs
- RelatedView.cs
- RTTypeWrapper.cs
- PingReply.cs
- HijriCalendar.cs
- GlyphRunDrawing.cs
- _ScatterGatherBuffers.cs
- ContainerActivationHelper.cs
- XmlNode.cs
- DataGridViewColumnHeaderCell.cs
- ToolStripRendererSwitcher.cs
- StaticTextPointer.cs
- SqlCachedBuffer.cs
- ActivityXRefConverter.cs
- AuthenticationSection.cs
- URIFormatException.cs
- StringReader.cs
- StaticTextPointer.cs
- MDIWindowDialog.cs