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
- ConnectionPoint.cs
- HtmlMeta.cs
- ViewPort3D.cs
- QilVisitor.cs
- DescendentsWalkerBase.cs
- GridViewCancelEditEventArgs.cs
- FactoryGenerator.cs
- TextDecorationUnitValidation.cs
- xsdvalidator.cs
- LinqDataSourceSelectEventArgs.cs
- FileAuthorizationModule.cs
- ServiceModelConfigurationSection.cs
- SynchronizationContext.cs
- ListChangedEventArgs.cs
- VectorAnimationBase.cs
- FixedTextContainer.cs
- RequestResizeEvent.cs
- BypassElement.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- SqlGenericUtil.cs
- AnchoredBlock.cs
- EncoderParameters.cs
- DataSourceControl.cs
- AsyncPostBackTrigger.cs
- Baml2006KeyRecord.cs
- RawStylusInputCustomData.cs
- IgnoreDataMemberAttribute.cs
- SecurityDescriptor.cs
- EntityDataSourceState.cs
- DrawTreeNodeEventArgs.cs
- XmlUrlResolver.cs
- LayoutEditorPart.cs
- ProjectionQueryOptionExpression.cs
- CriticalHandle.cs
- SmtpNetworkElement.cs
- mediaclock.cs
- MetadataAssemblyHelper.cs
- FilteredAttributeCollection.cs
- DatagramAdapter.cs
- RegionInfo.cs
- FacetDescription.cs
- StandardTransformFactory.cs
- MappingException.cs
- RotateTransform3D.cs
- DeferredSelectedIndexReference.cs
- DataGridViewRowsRemovedEventArgs.cs
- GridViewColumnCollection.cs
- InvokeMethod.cs
- XmlChildNodes.cs
- RolePrincipal.cs
- SendMessageContent.cs
- InternalBufferOverflowException.cs
- PrintPreviewGraphics.cs
- DataGridViewHeaderCell.cs
- MarkedHighlightComponent.cs
- PointConverter.cs
- ByteStream.cs
- SqlNodeTypeOperators.cs
- Ray3DHitTestResult.cs
- HeaderLabel.cs
- pingexception.cs
- ListControlDesigner.cs
- SimpleType.cs
- CollectionChangedEventManager.cs
- LockedBorderGlyph.cs
- GeneralTransform3DTo2D.cs
- XmlHierarchicalDataSourceView.cs
- SiteMapNodeItem.cs
- MouseOverProperty.cs
- ProviderCommandInfoUtils.cs
- FrameSecurityDescriptor.cs
- PartitionedStream.cs
- ComponentCollection.cs
- FontStretchConverter.cs
- StringSource.cs
- ToolTipAutomationPeer.cs
- ActivationServices.cs
- SqlParameterCollection.cs
- ContourSegment.cs
- PolicyException.cs
- DrawingGroup.cs
- DetailsViewPageEventArgs.cs
- NetworkInformationPermission.cs
- PropertyBuilder.cs
- ObfuscationAttribute.cs
- NativeCppClassAttribute.cs
- ColumnMapProcessor.cs
- TreeNodeBinding.cs
- Module.cs
- OutputChannelBinder.cs
- ConfigurationManagerHelper.cs
- HtmlGenericControl.cs
- AnonymousIdentificationSection.cs
- DataGridViewHitTestInfo.cs
- TextContainerChangeEventArgs.cs
- AuthorizationRuleCollection.cs
- BitmapFrameDecode.cs
- TextBoxDesigner.cs
- CodeNamespaceCollection.cs
- WindowsFormsHelpers.cs