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
- Metafile.cs
- ScriptMethodAttribute.cs
- SmiXetterAccessMap.cs
- DispatcherBuilder.cs
- RightsManagementEncryptionTransform.cs
- BitmapEffectDrawingContextWalker.cs
- SmiContextFactory.cs
- ActiveXSite.cs
- ProviderBase.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CompilerParameters.cs
- SynchronizationContext.cs
- SimpleHandlerFactory.cs
- ColorContext.cs
- Duration.cs
- Pair.cs
- StorageTypeMapping.cs
- RuleSetDialog.Designer.cs
- ResXResourceReader.cs
- TableAutomationPeer.cs
- AssemblyAssociatedContentFileAttribute.cs
- WSDualHttpBindingCollectionElement.cs
- WebPartChrome.cs
- EncoderReplacementFallback.cs
- ValuePattern.cs
- DoubleLink.cs
- MetadataCache.cs
- Image.cs
- PeerUnsafeNativeCryptMethods.cs
- Double.cs
- MemberAccessException.cs
- UniformGrid.cs
- ClientOptions.cs
- TrackingLocationCollection.cs
- NavigationPropertyAccessor.cs
- DataGridViewCellMouseEventArgs.cs
- RuntimeConfigLKG.cs
- DomainUpDown.cs
- SendMailErrorEventArgs.cs
- FileDialogPermission.cs
- BoundColumn.cs
- KeyInterop.cs
- Quaternion.cs
- StylusEventArgs.cs
- CacheOutputQuery.cs
- DbProviderFactory.cs
- AutomationProperties.cs
- SafeMILHandle.cs
- XsltOutput.cs
- DrawingContextWalker.cs
- AttachedPropertyBrowsableAttribute.cs
- VisualBrush.cs
- DataControlPagerLinkButton.cs
- WSSecureConversation.cs
- SHA384CryptoServiceProvider.cs
- FontSizeConverter.cs
- ListViewDeletedEventArgs.cs
- ExtensionFile.cs
- EffectiveValueEntry.cs
- _HTTPDateParse.cs
- GridItemPattern.cs
- ClientApiGenerator.cs
- FullTextLine.cs
- EditorAttribute.cs
- SafeHandles.cs
- TypeRestriction.cs
- HandlerBase.cs
- DataServiceCollectionOfT.cs
- SourceFilter.cs
- TypeDescriptionProviderAttribute.cs
- PrincipalPermission.cs
- RolePrincipal.cs
- ParentQuery.cs
- Duration.cs
- HttpCacheParams.cs
- _NestedMultipleAsyncResult.cs
- AnimatedTypeHelpers.cs
- NativeRightsManagementAPIsStructures.cs
- DataExpression.cs
- XmlCharacterData.cs
- SingleSelectRootGridEntry.cs
- BackStopAuthenticationModule.cs
- TableSectionStyle.cs
- PresentationSource.cs
- WorkflowOwnershipException.cs
- RefreshEventArgs.cs
- SamlAssertion.cs
- UrlAuthFailedErrorFormatter.cs
- DatagridviewDisplayedBandsData.cs
- LayoutUtils.cs
- DataGridViewLayoutData.cs
- TextPointerBase.cs
- Command.cs
- CompositionTarget.cs
- ClientRoleProvider.cs
- TrackPointCollection.cs
- RepeatInfo.cs
- XmlConverter.cs
- ISCIIEncoding.cs
- DefaultValueTypeConverter.cs