Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / OutputCacheProfileCollection.cs / 1305376 / 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))] 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))] 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
- VirtualDirectoryMappingCollection.cs
- TraceSection.cs
- FormsAuthenticationConfiguration.cs
- ProgressBarAutomationPeer.cs
- Size3D.cs
- ImageListImageEditor.cs
- WebPartVerbCollection.cs
- CodeLinePragma.cs
- CharAnimationBase.cs
- WriteLine.cs
- UnmanagedHandle.cs
- TdsValueSetter.cs
- CodeObject.cs
- ProcessInfo.cs
- Int64Storage.cs
- UseAttributeSetsAction.cs
- FileNotFoundException.cs
- ElementsClipboardData.cs
- IApplicationTrustManager.cs
- StylusPointCollection.cs
- TraceXPathNavigator.cs
- securestring.cs
- UInt64Converter.cs
- ChtmlPageAdapter.cs
- NumberAction.cs
- ResourceWriter.cs
- columnmapkeybuilder.cs
- ViewKeyConstraint.cs
- SafeProcessHandle.cs
- ClockGroup.cs
- TabletDevice.cs
- WsatServiceAddress.cs
- UnsafeNativeMethods.cs
- X509ChainElement.cs
- CreatingCookieEventArgs.cs
- SessionParameter.cs
- MethodBuilder.cs
- SerializationSectionGroup.cs
- GroupBox.cs
- SafeLocalMemHandle.cs
- Win32Exception.cs
- EncodingDataItem.cs
- Label.cs
- MimeTypeMapper.cs
- RichTextBoxDesigner.cs
- OracleRowUpdatingEventArgs.cs
- AnonymousIdentificationSection.cs
- CrossSiteScriptingValidation.cs
- OrthographicCamera.cs
- SlipBehavior.cs
- ControlTemplate.cs
- PageContentAsyncResult.cs
- PropertyMetadata.cs
- Encoding.cs
- PageSetupDialog.cs
- CollectionEditVerbManager.cs
- SimpleApplicationHost.cs
- HttpStaticObjectsCollectionWrapper.cs
- AsymmetricKeyExchangeDeformatter.cs
- TextBoxBase.cs
- FloaterParaClient.cs
- HtmlWindowCollection.cs
- NamespaceMapping.cs
- ImpersonationContext.cs
- XamlVector3DCollectionSerializer.cs
- TypeBuilder.cs
- Geometry3D.cs
- ObjectParameter.cs
- SchemaConstraints.cs
- ZipIOExtraFieldZip64Element.cs
- PowerEase.cs
- Baml2006KnownTypes.cs
- WebHeaderCollection.cs
- DependencyPropertyHelper.cs
- ListViewDeletedEventArgs.cs
- MatrixTransform3D.cs
- IntMinMaxAggregationOperator.cs
- TdsParserStaticMethods.cs
- PenLineJoinValidation.cs
- AutomationPropertyInfo.cs
- SimpleApplicationHost.cs
- TypeBuilder.cs
- CompilationUtil.cs
- Object.cs
- GenericTextProperties.cs
- XmlIgnoreAttribute.cs
- AssemblyEvidenceFactory.cs
- SqlMethodAttribute.cs
- XamlPoint3DCollectionSerializer.cs
- PropertyRef.cs
- ReflectionTypeLoadException.cs
- Random.cs
- XPathSingletonIterator.cs
- RoutingBehavior.cs
- Vector3DAnimationBase.cs
- SafeCertificateStore.cs
- HostedBindingBehavior.cs
- TextEditorSelection.cs
- CanonicalFormWriter.cs
- ClientApiGenerator.cs