Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / IgnoreDeviceFilterElementCollection.cs / 1305376 / IgnoreDeviceFilterElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Security.Permissions; using System.Text; using System.Threading; using System.Web.Util; using System.Web.UI; using System.Web.Compilation; using System.Web.Configuration; using System.Xml; [ConfigurationCollection(typeof(IgnoreDeviceFilterElement), AddItemName = "filter", CollectionType = ConfigurationElementCollectionType.BasicMap)] public sealed class IgnoreDeviceFilterElementCollection : ConfigurationElementCollection { private static readonly ConfigurationPropertyCollection _properties; static IgnoreDeviceFilterElementCollection() { _properties = new ConfigurationPropertyCollection(); } public IgnoreDeviceFilterElementCollection() : base(StringComparer.OrdinalIgnoreCase) { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public void Add(IgnoreDeviceFilterElement deviceFilter) { BaseAdd(deviceFilter); } public void Remove(string name) { BaseRemove(name); } public void Remove(IgnoreDeviceFilterElement deviceFilter) { BaseRemove(GetElementKey(deviceFilter)); } public void RemoveAt(int index) { BaseRemoveAt(index); } public new IgnoreDeviceFilterElement this[string name] { get { return (IgnoreDeviceFilterElement)BaseGet(name); } } public IgnoreDeviceFilterElement this[int index] { get { return (IgnoreDeviceFilterElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public void Clear() { BaseClear(); } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Can't modify the base class.")] protected override ConfigurationElement CreateNewElement() { return new IgnoreDeviceFilterElement(); } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Can't modify the base class.")] protected override Object GetElementKey(ConfigurationElement element) { return ((IgnoreDeviceFilterElement)element).Name; } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Can't modify the base class.")] protected override string ElementName { get { return "filter"; } } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Can't modify the base class.")] public override ConfigurationElementCollectionType CollectionType { get { return ConfigurationElementCollectionType.BasicMap; } } } } // 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
- Imaging.cs
- DoubleKeyFrameCollection.cs
- NamespaceDecl.cs
- TextFindEngine.cs
- DefaultSection.cs
- EnumerableCollectionView.cs
- Overlapped.cs
- SortAction.cs
- GridPatternIdentifiers.cs
- HtmlPhoneCallAdapter.cs
- XmlDataSource.cs
- ProxyHwnd.cs
- TextRangeBase.cs
- RewritingProcessor.cs
- XmlLanguageConverter.cs
- RootProfilePropertySettingsCollection.cs
- DataListDesigner.cs
- GeneralTransformGroup.cs
- BamlLocalizationDictionary.cs
- DirtyTextRange.cs
- CLSCompliantAttribute.cs
- AuthorizationSection.cs
- SerialStream.cs
- PrintControllerWithStatusDialog.cs
- ClientEventManager.cs
- BitSet.cs
- AnimationLayer.cs
- SizeConverter.cs
- SqlDependencyUtils.cs
- FileLoadException.cs
- QueryOperationResponseOfT.cs
- MetadataPropertyvalue.cs
- columnmapfactory.cs
- ZoneIdentityPermission.cs
- DragStartedEventArgs.cs
- SQLSingle.cs
- OracleTimeSpan.cs
- _Rfc2616CacheValidators.cs
- RequestCachingSection.cs
- TextFormatterImp.cs
- SudsWriter.cs
- X509RawDataKeyIdentifierClause.cs
- EntityStoreSchemaFilterEntry.cs
- DocumentXPathNavigator.cs
- TargetParameterCountException.cs
- CatalogPart.cs
- TaiwanLunisolarCalendar.cs
- DataGridTextBox.cs
- WorkflowQueueInfo.cs
- DataSourceListEditor.cs
- WebPartCloseVerb.cs
- DesignTimeXamlWriter.cs
- DesignerLoader.cs
- TypeForwardedToAttribute.cs
- RadioButtonAutomationPeer.cs
- AnnotationComponentChooser.cs
- BinHexDecoder.cs
- SymbolTable.cs
- Axis.cs
- OdbcHandle.cs
- BaseUriWithWildcard.cs
- Converter.cs
- QilStrConcat.cs
- DynamicValueConverter.cs
- SQLMoneyStorage.cs
- CommandBindingCollection.cs
- OrderedDictionaryStateHelper.cs
- TableRowGroup.cs
- SqlUtil.cs
- CrossSiteScriptingValidation.cs
- ErrorLog.cs
- PropertyTab.cs
- DataStreams.cs
- DesignerActionItem.cs
- DES.cs
- GenericsInstances.cs
- BitmapEffectDrawing.cs
- WebEventCodes.cs
- MultiPageTextView.cs
- CodeDirectoryCompiler.cs
- WebBrowsableAttribute.cs
- DockAndAnchorLayout.cs
- cookie.cs
- StrokeNode.cs
- DependencyObject.cs
- TextEffect.cs
- CapabilitiesAssignment.cs
- DelegatingConfigHost.cs
- IRCollection.cs
- RijndaelCryptoServiceProvider.cs
- SelectorItemAutomationPeer.cs
- ProvidePropertyAttribute.cs
- SettingsContext.cs
- FaultImportOptions.cs
- TypeSystemProvider.cs
- WindowsRebar.cs
- Help.cs
- DataGridViewEditingControlShowingEventArgs.cs
- EventLevel.cs
- LocalizabilityAttribute.cs