Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / SchemeSettingElementCollection.cs / 1305376 / SchemeSettingElementCollection.cs
using System; namespace System.Configuration { [ConfigurationCollection(typeof(SchemeSettingElementCollection), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap, AddItemName = SchemeSettingElementCollection.AddItemName, ClearItemsName = SchemeSettingElementCollection.ClearItemsName, RemoveItemName = SchemeSettingElementCollection.RemoveItemName)] public sealed class SchemeSettingElementCollection : ConfigurationElementCollection { internal const string AddItemName = "add"; internal const string ClearItemsName = "clear"; internal const string RemoveItemName = "remove"; public SchemeSettingElementCollection() { AddElementName = AddItemName; ClearElementName = ClearItemsName; RemoveElementName = RemoveItemName; } public override ConfigurationElementCollectionType CollectionType { get { return ConfigurationElementCollectionType.AddRemoveClearMap; } } public SchemeSettingElement this[int index] { get { return (SchemeSettingElement)BaseGet(index); } } public new SchemeSettingElement this[string name] { get { return (SchemeSettingElement)BaseGet(name); } } public int IndexOf(SchemeSettingElement element) { return BaseIndexOf(element); } protected override ConfigurationElement CreateNewElement() { return new SchemeSettingElement(); } protected override Object GetElementKey(ConfigurationElement element) { return ((SchemeSettingElement)element).Name; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Configuration { [ConfigurationCollection(typeof(SchemeSettingElementCollection), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap, AddItemName = SchemeSettingElementCollection.AddItemName, ClearItemsName = SchemeSettingElementCollection.ClearItemsName, RemoveItemName = SchemeSettingElementCollection.RemoveItemName)] public sealed class SchemeSettingElementCollection : ConfigurationElementCollection { internal const string AddItemName = "add"; internal const string ClearItemsName = "clear"; internal const string RemoveItemName = "remove"; public SchemeSettingElementCollection() { AddElementName = AddItemName; ClearElementName = ClearItemsName; RemoveElementName = RemoveItemName; } public override ConfigurationElementCollectionType CollectionType { get { return ConfigurationElementCollectionType.AddRemoveClearMap; } } public SchemeSettingElement this[int index] { get { return (SchemeSettingElement)BaseGet(index); } } public new SchemeSettingElement this[string name] { get { return (SchemeSettingElement)BaseGet(name); } } public int IndexOf(SchemeSettingElement element) { return BaseIndexOf(element); } protected override ConfigurationElement CreateNewElement() { return new SchemeSettingElement(); } protected override Object GetElementKey(ConfigurationElement element) { return ((SchemeSettingElement)element).Name; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Validator.cs
- CachedFontFace.cs
- IssuedTokenClientBehaviorsElement.cs
- Rights.cs
- fixedPageContentExtractor.cs
- MachineKeyConverter.cs
- SerializationEventsCache.cs
- BufferModesCollection.cs
- HandledMouseEvent.cs
- OdbcUtils.cs
- RoleServiceManager.cs
- EnumerableRowCollectionExtensions.cs
- XamlReader.cs
- InlineObject.cs
- HtmlTableCell.cs
- ButtonFlatAdapter.cs
- FastEncoder.cs
- Variant.cs
- SectionXmlInfo.cs
- AppDomainCompilerProxy.cs
- Point3DIndependentAnimationStorage.cs
- Selection.cs
- parserscommon.cs
- DataGridTablesFactory.cs
- AtlasWeb.Designer.cs
- QueryCacheEntry.cs
- SettingsBindableAttribute.cs
- DataGridViewImageCell.cs
- XmlNodeReader.cs
- BinaryCommonClasses.cs
- SyndicationItemFormatter.cs
- Int32Rect.cs
- SurrogateSelector.cs
- DataGridViewBindingCompleteEventArgs.cs
- TableParagraph.cs
- VersionPair.cs
- EncryptedData.cs
- QueryPageSettingsEventArgs.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- PersonalizationState.cs
- TabControlToolboxItem.cs
- _HeaderInfoTable.cs
- PolicyStatement.cs
- SubstitutionResponseElement.cs
- PriorityBinding.cs
- ImageCodecInfo.cs
- Transform3DCollection.cs
- XPathAncestorIterator.cs
- NullRuntimeConfig.cs
- StrokeNodeData.cs
- CheckBox.cs
- COM2FontConverter.cs
- DiagnosticTraceRecords.cs
- FilterableAttribute.cs
- TextSelectionHighlightLayer.cs
- BridgeDataRecord.cs
- WmlValidatorAdapter.cs
- Int32Rect.cs
- baseshape.cs
- XmlIgnoreAttribute.cs
- UserMapPath.cs
- DataGridViewMethods.cs
- FileDialog.cs
- CatalogPart.cs
- SQLGuidStorage.cs
- AdRotator.cs
- ToolboxComponentsCreatingEventArgs.cs
- OdbcTransaction.cs
- ListBox.cs
- DrawingGroupDrawingContext.cs
- MulticastOption.cs
- ColorConverter.cs
- Timer.cs
- KnownColorTable.cs
- BookmarkOptionsHelper.cs
- CTreeGenerator.cs
- MruCache.cs
- SupportingTokenSecurityTokenResolver.cs
- Control.cs
- PropertyGridEditorPart.cs
- CounterSample.cs
- PropertyFilterAttribute.cs
- GorillaCodec.cs
- DynamicObject.cs
- BufferedGraphics.cs
- MetafileHeader.cs
- Binding.cs
- WmlImageAdapter.cs
- DataViewManagerListItemTypeDescriptor.cs
- WebConfigurationHost.cs
- Fonts.cs
- NumericUpDownAccelerationCollection.cs
- Rule.cs
- DataGridViewLinkCell.cs
- ReadOnlyNameValueCollection.cs
- WebPartAddingEventArgs.cs
- DataControlButton.cs
- UnmanagedMemoryAccessor.cs
- ControlCachePolicy.cs
- DateTimeFormat.cs