Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryOperationResponseOfT.cs
- BackgroundWorker.cs
- Button.cs
- TreeNodeStyleCollection.cs
- ListBindableAttribute.cs
- MemoryStream.cs
- DesignerAutoFormatStyle.cs
- SafeIUnknown.cs
- SqlDataSourceStatusEventArgs.cs
- WpfPayload.cs
- DataGridrowEditEndingEventArgs.cs
- MimeWriter.cs
- XmlSchemaComplexType.cs
- CategoryGridEntry.cs
- SharedPersonalizationStateInfo.cs
- SecurityTokenSpecification.cs
- CategoryAttribute.cs
- XmlStringTable.cs
- OperandQuery.cs
- ButtonBase.cs
- backend.cs
- AnnotationAdorner.cs
- PopupEventArgs.cs
- UseLicense.cs
- MenuBindingsEditorForm.cs
- MultiAsyncResult.cs
- columnmapkeybuilder.cs
- ComponentDispatcher.cs
- EventManager.cs
- ArgumentsParser.cs
- AppSettingsSection.cs
- TemplateKey.cs
- MemberHolder.cs
- DependencyProperty.cs
- AsyncResult.cs
- StrokeNodeOperations.cs
- Root.cs
- TreeChangeInfo.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SmiMetaData.cs
- NetCodeGroup.cs
- ExceptionHandlers.cs
- ResourceDisplayNameAttribute.cs
- ResourceManager.cs
- RadioButton.cs
- NetSectionGroup.cs
- XmlDataSourceNodeDescriptor.cs
- CompoundFileIOPermission.cs
- DuplexChannelFactory.cs
- SafeNativeMethods.cs
- ReferenceConverter.cs
- InternalsVisibleToAttribute.cs
- TCPClient.cs
- EnvelopedSignatureTransform.cs
- ImageBrush.cs
- PackageProperties.cs
- Utils.cs
- WindowsListViewItemStartMenu.cs
- XmlDataProvider.cs
- _KerberosClient.cs
- QilExpression.cs
- DataPagerField.cs
- ChannelServices.cs
- MailHeaderInfo.cs
- PrintPreviewDialog.cs
- EntitySetBaseCollection.cs
- TypefaceMetricsCache.cs
- PackageRelationshipSelector.cs
- CaseStatementSlot.cs
- IdentityReference.cs
- DesignerWithHeader.cs
- FamilyTypeface.cs
- ArraySegment.cs
- XmlSchemaSimpleContentExtension.cs
- MaskedTextBox.cs
- Content.cs
- FileSystemWatcher.cs
- CounterSampleCalculator.cs
- TextMetrics.cs
- ValidationSummary.cs
- processwaithandle.cs
- DependencyPropertyKind.cs
- StretchValidation.cs
- EventWaitHandleSecurity.cs
- DPCustomTypeDescriptor.cs
- AuthenticationService.cs
- XPathAxisIterator.cs
- Int16AnimationUsingKeyFrames.cs
- KeyboardDevice.cs
- SignedInfo.cs
- Intellisense.cs
- EventLog.cs
- wgx_sdk_version.cs
- HasCopySemanticsAttribute.cs
- InputQueue.cs
- MatrixAnimationBase.cs
- ByteAnimationUsingKeyFrames.cs
- DrawingGroupDrawingContext.cs
- BehaviorService.cs
- TextDecorationCollectionConverter.cs