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
- InfoCardArgumentException.cs
- CanExecuteRoutedEventArgs.cs
- RegexNode.cs
- SafeMILHandle.cs
- Process.cs
- SourceFileBuildProvider.cs
- AuthStoreRoleProvider.cs
- SchemaMerger.cs
- wmiprovider.cs
- TemplatedMailWebEventProvider.cs
- SqlDataSourceCommandEventArgs.cs
- ScalarConstant.cs
- DataStreams.cs
- ScrollViewerAutomationPeer.cs
- SerializationSectionGroup.cs
- HtmlTernaryTree.cs
- SecurityDocument.cs
- WriteTimeStream.cs
- Wrapper.cs
- SchemaLookupTable.cs
- ProfileService.cs
- RangeValuePattern.cs
- CodeCatchClauseCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- LocationChangedEventArgs.cs
- AssociationSetEnd.cs
- TypeUsage.cs
- VirtualPath.cs
- DesignerEventService.cs
- CancellationTokenRegistration.cs
- FontFamilyIdentifier.cs
- ReachPageContentCollectionSerializerAsync.cs
- MasterPageParser.cs
- DnsPermission.cs
- Misc.cs
- EventWaitHandle.cs
- Cursors.cs
- PageSetupDialog.cs
- RawKeyboardInputReport.cs
- ManipulationStartingEventArgs.cs
- XmlNodeChangedEventManager.cs
- SiteOfOriginContainer.cs
- EntityException.cs
- ConnectionStringsExpressionBuilder.cs
- GetPageCompletedEventArgs.cs
- CssStyleCollection.cs
- HttpPostProtocolImporter.cs
- AttachedAnnotation.cs
- RecipientInfo.cs
- TemplateInstanceAttribute.cs
- BamlBinaryReader.cs
- CachedBitmap.cs
- RectAnimationClockResource.cs
- EntityViewGenerationAttribute.cs
- CollectionBuilder.cs
- TableNameAttribute.cs
- SafeNativeMethods.cs
- HttpCacheParams.cs
- NullableDoubleMinMaxAggregationOperator.cs
- SafeRightsManagementEnvironmentHandle.cs
- DataGridPageChangedEventArgs.cs
- SerializationFieldInfo.cs
- Vector3DCollectionValueSerializer.cs
- TemplateNameScope.cs
- PerfCounters.cs
- DrawListViewColumnHeaderEventArgs.cs
- ByteStreamGeometryContext.cs
- TextTreeRootNode.cs
- DocComment.cs
- RSAOAEPKeyExchangeFormatter.cs
- WorkflowApplicationEventArgs.cs
- MemoryMappedViewAccessor.cs
- ProxyAttribute.cs
- TextDecorationCollectionConverter.cs
- BuilderInfo.cs
- EventData.cs
- DataSourceDescriptorCollection.cs
- CatalogZone.cs
- Verify.cs
- DefaultTextStoreTextComposition.cs
- PeerNameRegistration.cs
- BuildResult.cs
- EntityDataSourceContainerNameConverter.cs
- ProcessHost.cs
- HotSpot.cs
- ValidatedMobileControlConverter.cs
- NetPeerTcpBinding.cs
- ResourceReader.cs
- CaretElement.cs
- returneventsaver.cs
- SymbolType.cs
- SortQuery.cs
- ColorIndependentAnimationStorage.cs
- MessageDecoder.cs
- DisplayMemberTemplateSelector.cs
- IERequestCache.cs
- BuildProvider.cs
- OperationAbortedException.cs
- PieceNameHelper.cs
- SafeRightsManagementSessionHandle.cs