Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / OutputCacheProfileCollection.cs / 1 / OutputCacheProfileCollection.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.Web.Util; using System.Security.Permissions; [ConfigurationCollection(typeof(OutputCacheProfile))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class OutputCacheProfileCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static OutputCacheProfileCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public OutputCacheProfileCollection() : base(StringComparer.OrdinalIgnoreCase) { } // public properties public String[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public new OutputCacheProfile this[string name] { get { return (OutputCacheProfile)BaseGet(name); } // Having a setter here would be strange in that you could write // collection["Name1"] = new OutputCacheProfile("differentName"... // } public OutputCacheProfile this[int index] { get { return (OutputCacheProfile)BaseGet(index); } set { if (BaseGet(index) != null) BaseRemoveAt(index); BaseAdd(index, value); } } // Protected Overrides protected override ConfigurationElement CreateNewElement() { return new OutputCacheProfile(); } protected override Object GetElementKey(ConfigurationElement element) { return ((OutputCacheProfile)element).Name; } // public methods public void Add(OutputCacheProfile name) { BaseAdd(name); } public void Clear() { BaseClear(); } public OutputCacheProfile Get(int index) { return (OutputCacheProfile)BaseGet(index); } public OutputCacheProfile Get(string name) { return (OutputCacheProfile)BaseGet(name); } public String GetKey(int index) { return (String) BaseGetKey(index); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } public void Set(OutputCacheProfile user) { BaseAdd(user, false); } } } // 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.Web.Util; using System.Security.Permissions; [ConfigurationCollection(typeof(OutputCacheProfile))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class OutputCacheProfileCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static OutputCacheProfileCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public OutputCacheProfileCollection() : base(StringComparer.OrdinalIgnoreCase) { } // public properties public String[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public new OutputCacheProfile this[string name] { get { return (OutputCacheProfile)BaseGet(name); } // Having a setter here would be strange in that you could write // collection["Name1"] = new OutputCacheProfile("differentName"... // } public OutputCacheProfile this[int index] { get { return (OutputCacheProfile)BaseGet(index); } set { if (BaseGet(index) != null) BaseRemoveAt(index); BaseAdd(index, value); } } // Protected Overrides protected override ConfigurationElement CreateNewElement() { return new OutputCacheProfile(); } protected override Object GetElementKey(ConfigurationElement element) { return ((OutputCacheProfile)element).Name; } // public methods public void Add(OutputCacheProfile name) { BaseAdd(name); } public void Clear() { BaseClear(); } public OutputCacheProfile Get(int index) { return (OutputCacheProfile)BaseGet(index); } public OutputCacheProfile Get(string name) { return (OutputCacheProfile)BaseGet(name); } public String GetKey(int index) { return (String) BaseGetKey(index); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } public void Set(OutputCacheProfile user) { BaseAdd(user, false); } } } // 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
- SubMenuStyle.cs
- BooleanSwitch.cs
- ErrorTableItemStyle.cs
- BrowserTree.cs
- TextBox.cs
- Point4DConverter.cs
- DataRow.cs
- Color.cs
- QilDataSource.cs
- DateBoldEvent.cs
- ResetableIterator.cs
- FileEnumerator.cs
- ComboBoxDesigner.cs
- ItemsControlAutomationPeer.cs
- PixelFormats.cs
- SqlGatherProducedAliases.cs
- SmiGettersStream.cs
- CodeChecksumPragma.cs
- NativeWindow.cs
- CleanUpVirtualizedItemEventArgs.cs
- AuthenticationConfig.cs
- RotateTransform3D.cs
- TcpPortSharing.cs
- NamespaceListProperty.cs
- DataList.cs
- FormViewUpdatedEventArgs.cs
- ConfigXmlCDataSection.cs
- RuleRef.cs
- TextReturnReader.cs
- CharacterMetrics.cs
- controlskin.cs
- MonthCalendarDesigner.cs
- CachedFontFamily.cs
- DesignerValidationSummaryAdapter.cs
- SafeNativeMethods.cs
- UnaryNode.cs
- DragDropManager.cs
- ConnectionInterfaceCollection.cs
- PlanCompiler.cs
- RoamingStoreFile.cs
- LayoutTableCell.cs
- GridItemProviderWrapper.cs
- OpenFileDialog.cs
- DataViewManager.cs
- MethodCallExpression.cs
- TransactionContextManager.cs
- AuthStoreRoleProvider.cs
- AssemblyAssociatedContentFileAttribute.cs
- AutoGeneratedFieldProperties.cs
- Action.cs
- _NetworkingPerfCounters.cs
- PopupEventArgs.cs
- TerminatorSinks.cs
- ChineseLunisolarCalendar.cs
- PropertyEmitter.cs
- AutomationPatternInfo.cs
- HTTPNotFoundHandler.cs
- ObjectDataSourceChooseMethodsPanel.cs
- MimeReturn.cs
- DragDropHelper.cs
- FrameworkRichTextComposition.cs
- EditorZoneBase.cs
- latinshape.cs
- DataPagerFieldItem.cs
- ImageFormat.cs
- UnmanagedMemoryStreamWrapper.cs
- OleDbTransaction.cs
- MultiDataTrigger.cs
- ByteKeyFrameCollection.cs
- ProviderCollection.cs
- AssertFilter.cs
- XmlTypeMapping.cs
- Configuration.cs
- CompiledRegexRunner.cs
- HttpModulesInstallComponent.cs
- HttpHandlerActionCollection.cs
- OpCodes.cs
- CSharpCodeProvider.cs
- OleDbDataAdapter.cs
- Triplet.cs
- DSGeneratorProblem.cs
- _NestedMultipleAsyncResult.cs
- Validator.cs
- ExtensibleClassFactory.cs
- MarkerProperties.cs
- CurrentTimeZone.cs
- Transform.cs
- SqlNotificationEventArgs.cs
- DataGridTableCollection.cs
- ProxyManager.cs
- DesignerMetadata.cs
- Int32Storage.cs
- StringArrayConverter.cs
- FixedPageProcessor.cs
- SQLMoneyStorage.cs
- CodeIterationStatement.cs
- TransformerTypeCollection.cs
- TreeNodeEventArgs.cs
- EntityContainerEmitter.cs
- MailDefinition.cs