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
- Hashtable.cs
- Events.cs
- DataGridViewRowPrePaintEventArgs.cs
- PersonalizationProviderCollection.cs
- Adorner.cs
- IdentityHolder.cs
- TreeViewItemAutomationPeer.cs
- HwndHostAutomationPeer.cs
- Rules.cs
- HebrewNumber.cs
- FlagsAttribute.cs
- MouseEvent.cs
- CheckableControlBaseAdapter.cs
- DbConvert.cs
- NameTable.cs
- IteratorFilter.cs
- BounceEase.cs
- WebPartTransformer.cs
- ErrorEventArgs.cs
- ForceCopyBuildProvider.cs
- Point3DAnimation.cs
- Evidence.cs
- FunctionUpdateCommand.cs
- StructuredCompositeActivityDesigner.cs
- ReferencedType.cs
- TraceData.cs
- XmlDesigner.cs
- ConfigurationSettings.cs
- ResourceWriter.cs
- QuotedStringWriteStateInfo.cs
- SqlCommandSet.cs
- Point3DCollection.cs
- EventWaitHandle.cs
- MouseBinding.cs
- PeerToPeerException.cs
- NotifyInputEventArgs.cs
- PolygonHotSpot.cs
- TextContainerChangedEventArgs.cs
- XamlReaderHelper.cs
- ReliabilityContractAttribute.cs
- ResourceExpressionEditor.cs
- TypeValidationEventArgs.cs
- SqlDependency.cs
- UrlPropertyAttribute.cs
- CodeCastExpression.cs
- storepermissionattribute.cs
- WebPartDescription.cs
- MSAANativeProvider.cs
- FormsIdentity.cs
- OperationFormatStyle.cs
- Recipient.cs
- BooleanProjectedSlot.cs
- UnsafePeerToPeerMethods.cs
- ShaderEffect.cs
- coordinator.cs
- SingleKeyFrameCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TemplateColumn.cs
- XmlAnyElementAttribute.cs
- ReadOnlyDictionary.cs
- QueryRewriter.cs
- CancelEventArgs.cs
- TreeNodeCollectionEditorDialog.cs
- ColumnTypeConverter.cs
- SnapshotChangeTrackingStrategy.cs
- EdmComplexTypeAttribute.cs
- CharKeyFrameCollection.cs
- PackageStore.cs
- ConfigPathUtility.cs
- MediaPlayer.cs
- Compilation.cs
- ThicknessAnimation.cs
- ScriptReferenceEventArgs.cs
- CellTreeNodeVisitors.cs
- Rect3DConverter.cs
- DataGridItemAutomationPeer.cs
- UriParserTemplates.cs
- ReadingWritingEntityEventArgs.cs
- Keyboard.cs
- IERequestCache.cs
- UdpDiscoveryEndpointProvider.cs
- Resources.Designer.cs
- ISessionStateStore.cs
- XmlILModule.cs
- SqlTypeConverter.cs
- MatrixIndependentAnimationStorage.cs
- SmtpCommands.cs
- RedistVersionInfo.cs
- SystemParameters.cs
- PackageRelationshipSelector.cs
- GridEntryCollection.cs
- SmtpNetworkElement.cs
- GraphicsContainer.cs
- DocumentReference.cs
- SubstitutionDesigner.cs
- DoneReceivingAsyncResult.cs
- PeerTransportListenAddressValidatorAttribute.cs
- Guid.cs
- Base64Stream.cs
- SmtpSpecifiedPickupDirectoryElement.cs