Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FormClosingEvent.cs
- HMACSHA256.cs
- ImageDrawing.cs
- MemoryRecordBuffer.cs
- MailSettingsSection.cs
- SequenceQuery.cs
- CompilerTypeWithParams.cs
- DbConnectionPoolGroup.cs
- TableItemStyle.cs
- ListDictionaryInternal.cs
- ByteViewer.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- WebPartConnectVerb.cs
- SecurityManager.cs
- PostBackOptions.cs
- SmtpNtlmAuthenticationModule.cs
- Application.cs
- MarkupExtensionReturnTypeAttribute.cs
- VisualCollection.cs
- PkcsMisc.cs
- RectAnimationBase.cs
- XmlValueConverter.cs
- BufferedGraphicsContext.cs
- ReflectionTypeLoadException.cs
- ChannelHandler.cs
- ItemCheckEvent.cs
- XmlBinaryReader.cs
- KeyGestureValueSerializer.cs
- DataSourceControlBuilder.cs
- WebPartCollection.cs
- RequestCacheManager.cs
- ByteBufferPool.cs
- XhtmlTextWriter.cs
- ObjectPersistData.cs
- Literal.cs
- ObjectDataSourceStatusEventArgs.cs
- DrawListViewColumnHeaderEventArgs.cs
- RelationshipEndCollection.cs
- OrderedEnumerableRowCollection.cs
- StateElement.cs
- Parser.cs
- Exception.cs
- SessionEndingCancelEventArgs.cs
- FormViewActionList.cs
- NullReferenceException.cs
- ToolStripOverflow.cs
- ObjectHandle.cs
- AttachmentService.cs
- ArrangedElement.cs
- CheckBox.cs
- AnimationClock.cs
- Graph.cs
- wgx_commands.cs
- InputLanguageManager.cs
- ReferenceEqualityComparer.cs
- MatrixKeyFrameCollection.cs
- PropertiesTab.cs
- SqlDataSourceQueryConverter.cs
- Misc.cs
- SHA1Managed.cs
- HtmlPhoneCallAdapter.cs
- WebBrowserUriTypeConverter.cs
- DiagnosticsElement.cs
- RegularExpressionValidator.cs
- InitializerFacet.cs
- KeyConverter.cs
- AdCreatedEventArgs.cs
- RayMeshGeometry3DHitTestResult.cs
- BooleanFunctions.cs
- SubMenuStyleCollection.cs
- ServerValidateEventArgs.cs
- DivideByZeroException.cs
- NativeMethods.cs
- PageBuildProvider.cs
- DomainUpDown.cs
- MissingMethodException.cs
- CurrencyWrapper.cs
- InkSerializer.cs
- Mapping.cs
- DBSqlParserColumnCollection.cs
- Fonts.cs
- RequestQueryProcessor.cs
- StyleXamlParser.cs
- XmlAnyAttributeAttribute.cs
- DbModificationClause.cs
- TableRowsCollectionEditor.cs
- DocumentScope.cs
- TypeTypeConverter.cs
- WebPartConnection.cs
- EntityParameterCollection.cs
- SerializableAttribute.cs
- PersonalizationDictionary.cs
- Pen.cs
- PageThemeParser.cs
- TextTreeRootTextBlock.cs
- SharedPerformanceCounter.cs
- OutputWindow.cs
- _HelperAsyncResults.cs
- StringInfo.cs
- TableAdapterManagerNameHandler.cs