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
- AuthorizationRule.cs
- _TimerThread.cs
- EntityDataSourceContextCreatedEventArgs.cs
- StylusCaptureWithinProperty.cs
- AdapterDictionary.cs
- MethodSignatureGenerator.cs
- IncrementalHitTester.cs
- FunctionImportElement.cs
- PermissionSetEnumerator.cs
- RegistryKey.cs
- ObjectSet.cs
- MenuAdapter.cs
- DesignerTextWriter.cs
- RawTextInputReport.cs
- WebPartDescription.cs
- CommentAction.cs
- SqlDataSourceView.cs
- DiscoveryMessageSequence.cs
- CodeSubDirectory.cs
- LinqToSqlWrapper.cs
- StorageInfo.cs
- TraceAsyncResult.cs
- SizeAnimationUsingKeyFrames.cs
- TdsParserHelperClasses.cs
- CompensationHandlingFilter.cs
- CriticalFileToken.cs
- PreloadedPackages.cs
- CdpEqualityComparer.cs
- FileDialogCustomPlace.cs
- LZCodec.cs
- TrackingServices.cs
- AnnotationDocumentPaginator.cs
- NextPreviousPagerField.cs
- XmlUrlEditor.cs
- DataRecordObjectView.cs
- DesignTimeTemplateParser.cs
- XmlEnumAttribute.cs
- SafeBitVector32.cs
- ViewStateModeByIdAttribute.cs
- CheckBoxFlatAdapter.cs
- ZipQueryOperator.cs
- TextEditorContextMenu.cs
- XslException.cs
- SpellerHighlightLayer.cs
- ScriptingWebServicesSectionGroup.cs
- TextTreeText.cs
- EntityDataSourceWrapperCollection.cs
- XmlWellformedWriter.cs
- DataSourceSelectArguments.cs
- MergablePropertyAttribute.cs
- SizeAnimationBase.cs
- RouteItem.cs
- ObjectListItemCollection.cs
- HMACSHA1.cs
- Attribute.cs
- ToolStripContainerActionList.cs
- SectionInformation.cs
- DataGridTextBoxColumn.cs
- ByteStack.cs
- BuildManagerHost.cs
- EntitySetDataBindingList.cs
- mda.cs
- ProfilePropertySettingsCollection.cs
- ElapsedEventArgs.cs
- ComboBox.cs
- ConstNode.cs
- ChangesetResponse.cs
- ApplicationServicesHostFactory.cs
- TextEffectCollection.cs
- GridSplitter.cs
- SaveFileDialogDesigner.cs
- _HTTPDateParse.cs
- Application.cs
- RequestReplyCorrelator.cs
- DataGridViewRowHeaderCell.cs
- sqlmetadatafactory.cs
- ChtmlMobileTextWriter.cs
- XPathAncestorQuery.cs
- Variant.cs
- documentsequencetextcontainer.cs
- RemoteWebConfigurationHost.cs
- Color.cs
- FieldAccessException.cs
- XmlNotation.cs
- TileBrush.cs
- ReleaseInstanceMode.cs
- FrameworkTemplate.cs
- ConfigXmlReader.cs
- MsmqHostedTransportConfiguration.cs
- ResolveDuplex11AsyncResult.cs
- TreeWalkHelper.cs
- ClientData.cs
- ErrorFormatterPage.cs
- NetworkInformationException.cs
- BindingExpressionUncommonField.cs
- ICollection.cs
- Schema.cs
- TargetControlTypeCache.cs
- InfoCardSymmetricAlgorithm.cs
- GregorianCalendarHelper.cs