Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / WebRequestModuleElementCollection.cs / 1305376 / WebRequestModuleElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(WebRequestModuleElement))] public sealed class WebRequestModuleElementCollection : ConfigurationElementCollection { public WebRequestModuleElementCollection() { } public WebRequestModuleElement this[int index] { get { return (WebRequestModuleElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new WebRequestModuleElement this[string name] { get { return (WebRequestModuleElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(WebRequestModuleElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new WebRequestModuleElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((WebRequestModuleElement)element).Key; } public int IndexOf(WebRequestModuleElement element) { return BaseIndexOf(element); } public void Remove(WebRequestModuleElement element) { if (element == null) throw new ArgumentNullException("element"); BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(WebRequestModuleElement))] public sealed class WebRequestModuleElementCollection : ConfigurationElementCollection { public WebRequestModuleElementCollection() { } public WebRequestModuleElement this[int index] { get { return (WebRequestModuleElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new WebRequestModuleElement this[string name] { get { return (WebRequestModuleElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(WebRequestModuleElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new WebRequestModuleElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((WebRequestModuleElement)element).Key; } public int IndexOf(WebRequestModuleElement element) { return BaseIndexOf(element); } public void Remove(WebRequestModuleElement element) { if (element == null) throw new ArgumentNullException("element"); BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // 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
- SettingsBase.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- MethodBuilderInstantiation.cs
- DataGridColumn.cs
- SafeNativeMethods.cs
- SynchronizationScope.cs
- ObjectManager.cs
- Keywords.cs
- SoapServerMethod.cs
- EdmComplexPropertyAttribute.cs
- SerializationSectionGroup.cs
- CmsInterop.cs
- CodeAccessPermission.cs
- EpmContentDeSerializerBase.cs
- exports.cs
- EventHandlersStore.cs
- DescendantOverDescendantQuery.cs
- LocationUpdates.cs
- HtmlTableCellCollection.cs
- DataGridViewCellConverter.cs
- FixedDocumentPaginator.cs
- ProxyElement.cs
- Int16KeyFrameCollection.cs
- BaseDataBoundControl.cs
- ColumnReorderedEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- RangeValueProviderWrapper.cs
- DynamicExpression.cs
- StrokeNodeData.cs
- DataGridViewSelectedRowCollection.cs
- ExtensionQuery.cs
- WindowsListBox.cs
- mda.cs
- HtmlLiteralTextAdapter.cs
- ConfigXmlWhitespace.cs
- FixedSOMGroup.cs
- TimeSpanStorage.cs
- Size3D.cs
- DataServiceRequestException.cs
- SymbolTable.cs
- InputReferenceExpression.cs
- DispatcherProcessingDisabled.cs
- Vector3DIndependentAnimationStorage.cs
- PropertyMapper.cs
- ControlBuilder.cs
- TableAdapterManagerMethodGenerator.cs
- ConfigXmlWhitespace.cs
- StrokeCollectionConverter.cs
- XmlHierarchyData.cs
- ManagedFilter.cs
- IsolatedStorage.cs
- TreeIterator.cs
- EntryWrittenEventArgs.cs
- WebPermission.cs
- CollectionView.cs
- CodeTypeDelegate.cs
- SchemaElement.cs
- ThreadStartException.cs
- DetailsViewUpdatedEventArgs.cs
- LogWriteRestartAreaState.cs
- SpinLock.cs
- ProfileGroupSettings.cs
- ServerValidateEventArgs.cs
- EditCommandColumn.cs
- DesignerProperties.cs
- ConditionalDesigner.cs
- CodeTryCatchFinallyStatement.cs
- SortKey.cs
- PeerResolver.cs
- AnnotationComponentManager.cs
- DependencyPropertyConverter.cs
- FixedStringLookup.cs
- XmlIncludeAttribute.cs
- WmlObjectListAdapter.cs
- WorkflowApplicationTerminatedException.cs
- ChtmlCalendarAdapter.cs
- Size3DValueSerializer.cs
- MeshGeometry3D.cs
- HostVisual.cs
- TreeChangeInfo.cs
- DbConnectionPoolGroup.cs
- TableItemStyle.cs
- DoubleAverageAggregationOperator.cs
- TransformValueSerializer.cs
- DmlSqlGenerator.cs
- SmiContextFactory.cs
- XmlProcessingInstruction.cs
- QueryRewriter.cs
- PageBreakRecord.cs
- XmlDataSource.cs
- Stackframe.cs
- RowBinding.cs
- HttpServerUtilityBase.cs
- LinkDesigner.cs
- ContextBase.cs
- ContourSegment.cs
- StringToken.cs
- TextEndOfLine.cs
- SQLMembershipProvider.cs
- DefaultValueAttribute.cs