Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / HttpCookiesSection.cs / 2 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NameNode.cs
- ServiceModelActivity.cs
- ActionMismatchAddressingException.cs
- ViewBox.cs
- PointKeyFrameCollection.cs
- RangeBaseAutomationPeer.cs
- ErrorEventArgs.cs
- AggregatePushdown.cs
- TreeViewItem.cs
- TextReader.cs
- VectorValueSerializer.cs
- DockPanel.cs
- NetworkInformationException.cs
- ProgressBarHighlightConverter.cs
- PngBitmapDecoder.cs
- PerformanceCounterManager.cs
- HostingEnvironment.cs
- NodeInfo.cs
- UIPermission.cs
- SimplePropertyEntry.cs
- OracleCommandSet.cs
- PropertyDescriptorCollection.cs
- Int16.cs
- RegexCapture.cs
- Comparer.cs
- BaseDataList.cs
- SystemResourceKey.cs
- EventLogReader.cs
- StringAttributeCollection.cs
- StoreContentChangedEventArgs.cs
- HtmlSelect.cs
- TextElementCollectionHelper.cs
- TextEncodedRawTextWriter.cs
- TypeCollectionPropertyEditor.cs
- ResourceExpressionBuilder.cs
- DateTimeOffset.cs
- PreDigestedSignedInfo.cs
- XmlDocument.cs
- CurrentTimeZone.cs
- Image.cs
- TransformGroup.cs
- MessagePropertyVariants.cs
- DrawingContext.cs
- DataGridTableStyleMappingNameEditor.cs
- IssuerInformation.cs
- TypePresenter.xaml.cs
- TypeSystem.cs
- XmlUtilWriter.cs
- ToolStripDropTargetManager.cs
- TraceContextRecord.cs
- SecuritySessionServerSettings.cs
- HitTestParameters3D.cs
- TerminateSequence.cs
- SqlDataReader.cs
- SystemResourceHost.cs
- WebPartsSection.cs
- Util.cs
- WorkflowServiceHostFactory.cs
- InfiniteTimeSpanConverter.cs
- ObjectDataSource.cs
- ResponseStream.cs
- WebUtil.cs
- WindowsStatic.cs
- AdapterDictionary.cs
- TreeBuilderXamlTranslator.cs
- WebResourceUtil.cs
- FixedBufferAttribute.cs
- MoveSizeWinEventHandler.cs
- BufferedGraphicsManager.cs
- ComponentResourceKey.cs
- CodeTypeConstructor.cs
- Trigger.cs
- Renderer.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataGridViewLinkColumn.cs
- DataGridGeneralPage.cs
- ApplicationGesture.cs
- InputGestureCollection.cs
- SqlRowUpdatedEvent.cs
- AlternateViewCollection.cs
- TextFormatter.cs
- _FtpDataStream.cs
- RegisteredExpandoAttribute.cs
- TextSegment.cs
- ClientRoleProvider.cs
- SmiEventSink_DeferedProcessing.cs
- TextEffect.cs
- DiscardableAttribute.cs
- BitmapDownload.cs
- DSGeneratorProblem.cs
- Animatable.cs
- RenderDataDrawingContext.cs
- Misc.cs
- PropertyTab.cs
- FrameworkContentElementAutomationPeer.cs
- ActivityIdHeader.cs
- ItemCollection.cs
- GestureRecognitionResult.cs
- IPGlobalProperties.cs
- ThumbAutomationPeer.cs