Code:
/ DotNET / DotNET / 8.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
- EntityDesignerBuildProvider.cs
- ColorInterpolationModeValidation.cs
- EraserBehavior.cs
- StrokeCollection2.cs
- WriteFileContext.cs
- Decorator.cs
- XmlException.cs
- EmptyQuery.cs
- ProgressBarRenderer.cs
- ReferentialConstraintRoleElement.cs
- Parallel.cs
- VSDExceptions.cs
- TransformedBitmap.cs
- AddInAttribute.cs
- ToolStripButton.cs
- ObjectDataSource.cs
- PenCursorManager.cs
- Schema.cs
- CodeAttributeArgument.cs
- IISUnsafeMethods.cs
- SettingsAttributeDictionary.cs
- ListViewCommandEventArgs.cs
- AdornerPresentationContext.cs
- FacetChecker.cs
- CommandManager.cs
- DataRelationPropertyDescriptor.cs
- ExecutionContext.cs
- MediaElementAutomationPeer.cs
- Error.cs
- AdapterSwitches.cs
- DropDownList.cs
- AnnotationStore.cs
- _NTAuthentication.cs
- ServiceOperationListItemList.cs
- OneOfScalarConst.cs
- VirtualDirectoryMapping.cs
- CatalogZone.cs
- DrawTreeNodeEventArgs.cs
- Vector3DAnimationBase.cs
- MultidimensionalArrayItemReference.cs
- SymbolType.cs
- SigningCredentials.cs
- ReadOnlyTernaryTree.cs
- ProviderUtil.cs
- KeyInstance.cs
- ExpressionBindings.cs
- SharedStream.cs
- PrinterUnitConvert.cs
- TypeConverter.cs
- BindToObject.cs
- StylusPlugInCollection.cs
- SplitterPanelDesigner.cs
- SequenceRangeCollection.cs
- ConfigXmlElement.cs
- XmlILTrace.cs
- NewArray.cs
- SqlNodeAnnotation.cs
- SkipStoryboardToFill.cs
- WebPageTraceListener.cs
- AutomationProperty.cs
- XmlReturnWriter.cs
- Vector.cs
- Membership.cs
- CharAnimationUsingKeyFrames.cs
- PackWebRequest.cs
- ObjectMemberMapping.cs
- ReadOnlyDataSource.cs
- Solver.cs
- MultipartContentParser.cs
- ProcessInfo.cs
- BaseTreeIterator.cs
- Icon.cs
- HScrollProperties.cs
- FrameworkTemplate.cs
- ColumnMapTranslator.cs
- LabelInfo.cs
- MobileUserControlDesigner.cs
- ClaimComparer.cs
- FormViewUpdatedEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- RectangleF.cs
- LayoutTable.cs
- DefaultParameterValueAttribute.cs
- DictionaryCustomTypeDescriptor.cs
- ConcurrentQueue.cs
- TypeConverterHelper.cs
- LocalizabilityAttribute.cs
- ConnectionProviderAttribute.cs
- FileRecordSequenceHelper.cs
- SoapRpcServiceAttribute.cs
- UrlPath.cs
- ConnectionPointGlyph.cs
- FileDialog_Vista.cs
- FlowDocumentFormatter.cs
- GradientStopCollection.cs
- DataServiceQueryContinuation.cs
- XmlJsonWriter.cs
- SafeEventHandle.cs
- SignedXml.cs
- TypeDescriptionProviderAttribute.cs