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 / OutputCacheSettingsSection.cs / 1 / OutputCacheSettingsSection.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.Globalization;
using System.IO;
using System.Text;
using System.Web.UI;
using System.ComponentModel;
using System.Security.Permissions;
/*
*/
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class OutputCacheSettingsSection : ConfigurationSection {
private static ConfigurationPropertyCollection _properties;
private static readonly ConfigurationProperty _propOutputCacheProfiles;
#if NOT_UNTIL_LATER
private static readonly ConfigurationProperty _propFragmentCacheProfiles;
#endif
static OutputCacheSettingsSection() {
// Property initialization
_properties = new ConfigurationPropertyCollection();
_propOutputCacheProfiles = new ConfigurationProperty("outputCacheProfiles",
typeof(OutputCacheProfileCollection),
null,
ConfigurationPropertyOptions.None);
_properties.Add(_propOutputCacheProfiles);
#if NOT_UNTIL_LATER
_propFragmentCacheProfiles = new ConfigurationProperty("fragmentCacheProfiles",
typeof(FragmentCacheProfileCollection),
new FragmentCacheProfileCollection(),
ConfigurationPropertyOptions.None);
_properties.Add(_propFragmentCacheProfiles);
#endif
}
public OutputCacheSettingsSection() {
}
protected override ConfigurationPropertyCollection Properties {
get {
return _properties;
}
}
[ConfigurationProperty("outputCacheProfiles")]
public OutputCacheProfileCollection OutputCacheProfiles {
get {
return (OutputCacheProfileCollection)base[_propOutputCacheProfiles];
}
}
#if NOT_UNTIL_LATER
[ConfigurationProperty("FragmentCacheProfiles")]
public FragmentCacheProfileCollection FragmentCacheProfiles {
get {
return (FragmentCacheProfileCollection) base[_propFragmentCacheProfiles];
}
}
#endif
}
}
// 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.Globalization;
using System.IO;
using System.Text;
using System.Web.UI;
using System.ComponentModel;
using System.Security.Permissions;
/*
*/
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class OutputCacheSettingsSection : ConfigurationSection {
private static ConfigurationPropertyCollection _properties;
private static readonly ConfigurationProperty _propOutputCacheProfiles;
#if NOT_UNTIL_LATER
private static readonly ConfigurationProperty _propFragmentCacheProfiles;
#endif
static OutputCacheSettingsSection() {
// Property initialization
_properties = new ConfigurationPropertyCollection();
_propOutputCacheProfiles = new ConfigurationProperty("outputCacheProfiles",
typeof(OutputCacheProfileCollection),
null,
ConfigurationPropertyOptions.None);
_properties.Add(_propOutputCacheProfiles);
#if NOT_UNTIL_LATER
_propFragmentCacheProfiles = new ConfigurationProperty("fragmentCacheProfiles",
typeof(FragmentCacheProfileCollection),
new FragmentCacheProfileCollection(),
ConfigurationPropertyOptions.None);
_properties.Add(_propFragmentCacheProfiles);
#endif
}
public OutputCacheSettingsSection() {
}
protected override ConfigurationPropertyCollection Properties {
get {
return _properties;
}
}
[ConfigurationProperty("outputCacheProfiles")]
public OutputCacheProfileCollection OutputCacheProfiles {
get {
return (OutputCacheProfileCollection)base[_propOutputCacheProfiles];
}
}
#if NOT_UNTIL_LATER
[ConfigurationProperty("FragmentCacheProfiles")]
public FragmentCacheProfileCollection FragmentCacheProfiles {
get {
return (FragmentCacheProfileCollection) base[_propFragmentCacheProfiles];
}
}
#endif
}
}
// 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
- ClassHandlersStore.cs
- InvalidProgramException.cs
- SubqueryRules.cs
- DesignBindingPicker.cs
- XmlDataSource.cs
- handlecollector.cs
- FindCriteria.cs
- Span.cs
- InputMethod.cs
- StrongNameKeyPair.cs
- Literal.cs
- ProfileSettings.cs
- NotifyInputEventArgs.cs
- DbException.cs
- TdsParserHelperClasses.cs
- AppModelKnownContentFactory.cs
- OleDbDataAdapter.cs
- HtmlCommandAdapter.cs
- MessageQueueException.cs
- StandardMenuStripVerb.cs
- SortQuery.cs
- ToolStripMenuItem.cs
- SchemaLookupTable.cs
- SqlUtils.cs
- ResourcePool.cs
- InternalException.cs
- WebCategoryAttribute.cs
- xml.cs
- TimeStampChecker.cs
- XmlSchemaException.cs
- XPathNode.cs
- Header.cs
- ContextQuery.cs
- FlowDocumentPage.cs
- PerfCounters.cs
- AddInStore.cs
- EntityParameterCollection.cs
- Zone.cs
- Predicate.cs
- SemanticValue.cs
- SQLInt16Storage.cs
- coordinator.cs
- EntityDataSourceEntitySetNameItem.cs
- GroupQuery.cs
- arabicshape.cs
- TextRangeProviderWrapper.cs
- EditorAttributeInfo.cs
- RecordConverter.cs
- GridItemProviderWrapper.cs
- Span.cs
- CommonGetThemePartSize.cs
- DockingAttribute.cs
- SudsParser.cs
- TextSerializer.cs
- ModelVisual3D.cs
- LogicalTreeHelper.cs
- Rect3DValueSerializer.cs
- GridViewRowCollection.cs
- SafeRightsManagementQueryHandle.cs
- LogRecordSequence.cs
- unsafenativemethodsother.cs
- TaiwanLunisolarCalendar.cs
- TextEmbeddedObject.cs
- Quaternion.cs
- DataBoundControl.cs
- TrackingServices.cs
- ToolStripRenderEventArgs.cs
- ToolStripDropDownButton.cs
- TypeConverterHelper.cs
- XmlElementElementCollection.cs
- TypeToArgumentTypeConverter.cs
- CodeGenerator.cs
- TraceListener.cs
- MonitoringDescriptionAttribute.cs
- LessThanOrEqual.cs
- ScriptingWebServicesSectionGroup.cs
- TdsParserStaticMethods.cs
- ReliableMessagingVersionConverter.cs
- GradientBrush.cs
- IncrementalReadDecoders.cs
- WinEventHandler.cs
- XamlGridLengthSerializer.cs
- RuntimeHandles.cs
- CAGDesigner.cs
- ApplicationActivator.cs
- WebRequestModuleElementCollection.cs
- SystemInformation.cs
- FormViewCommandEventArgs.cs
- BatchWriter.cs
- DataGridDetailsPresenter.cs
- SqlProvider.cs
- SecurityUniqueId.cs
- InputScope.cs
- WebPartMenuStyle.cs
- AssociatedControlConverter.cs
- OpenTypeLayoutCache.cs
- XmlSchemaChoice.cs
- UpDownBase.cs
- ServiceConfigurationTraceRecord.cs
- Int64AnimationUsingKeyFrames.cs