Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionElementCollection.cs / 1305376 / SchemaImporterExtensionElementCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization.Configuration
{
using System;
using System.Configuration;
using System.Security.Permissions;
[ConfigurationCollection(typeof(SchemaImporterExtensionElement))]
public sealed class SchemaImporterExtensionElementCollection : ConfigurationElementCollection
{
public SchemaImporterExtensionElementCollection()
{
}
public SchemaImporterExtensionElement this[int index]
{
get
{
return (SchemaImporterExtensionElement)BaseGet(index);
}
set
{
if (BaseGet(index) != null)
{
BaseRemoveAt(index);
}
BaseAdd(index,value);
}
}
public new SchemaImporterExtensionElement this[string name]
{
get
{
return (SchemaImporterExtensionElement)BaseGet(name);
}
set
{
if (BaseGet(name) != null)
{
BaseRemove(name);
}
BaseAdd(value);
}
}
public void Add(SchemaImporterExtensionElement element)
{
BaseAdd(element);
}
public void Clear()
{
BaseClear();
}
protected override ConfigurationElement CreateNewElement()
{
return new SchemaImporterExtensionElement();
}
protected override Object GetElementKey(ConfigurationElement element)
{
return ((SchemaImporterExtensionElement)element).Key;
}
public int IndexOf(SchemaImporterExtensionElement element)
{
return BaseIndexOf(element);
}
public void Remove(SchemaImporterExtensionElement 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
- Assert.cs
- Padding.cs
- TdsRecordBufferSetter.cs
- XmlAnyElementAttributes.cs
- DataSourceCacheDurationConverter.cs
- WindowsListViewItemCheckBox.cs
- Pair.cs
- XmlSchemaObjectTable.cs
- DiagnosticStrings.cs
- DeviceOverridableAttribute.cs
- UrlMappingsModule.cs
- RootProfilePropertySettingsCollection.cs
- SiteMapPath.cs
- PhonemeConverter.cs
- DataGrid.cs
- XmlAnyElementAttributes.cs
- AccessDataSource.cs
- IsolatedStoragePermission.cs
- FacetChecker.cs
- ExpressionSelection.cs
- ObjectViewEntityCollectionData.cs
- PropertyMetadata.cs
- NativeMethods.cs
- BrowserTree.cs
- PrimitiveRenderer.cs
- ReversePositionQuery.cs
- PublisherMembershipCondition.cs
- ConnectionPointCookie.cs
- SharedStatics.cs
- FileLoadException.cs
- WebPartEditorOkVerb.cs
- HttpResponseInternalBase.cs
- SafeCancelMibChangeNotify.cs
- XmlReader.cs
- TagNameToTypeMapper.cs
- BitmapEffectCollection.cs
- ObjectToken.cs
- LabelDesigner.cs
- DataGridViewAutoSizeModeEventArgs.cs
- KeyInterop.cs
- QilSortKey.cs
- SqlServer2KCompatibilityAnnotation.cs
- DPTypeDescriptorContext.cs
- SocketManager.cs
- PrinterResolution.cs
- FaultImportOptions.cs
- WebServicesSection.cs
- RouteValueExpressionBuilder.cs
- HttpListenerResponse.cs
- NullRuntimeConfig.cs
- DPCustomTypeDescriptor.cs
- RuleSettings.cs
- BufferedGraphicsContext.cs
- TextDecorationCollectionConverter.cs
- ConstructorNeedsTagAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- mediaeventshelper.cs
- SamlConstants.cs
- GeneralTransform2DTo3D.cs
- OdbcStatementHandle.cs
- BaseParser.cs
- QilReference.cs
- TextSegment.cs
- IgnoreFlushAndCloseStream.cs
- DesignerAttribute.cs
- ClientBuildManager.cs
- Wizard.cs
- Section.cs
- TableLayoutPanelResizeGlyph.cs
- BaseTemplateParser.cs
- RijndaelManaged.cs
- DocumentPageHost.cs
- SearchExpression.cs
- ViewCellSlot.cs
- _StreamFramer.cs
- PeerNearMe.cs
- CanonicalFontFamilyReference.cs
- HtmlHead.cs
- RangeValueProviderWrapper.cs
- Int32KeyFrameCollection.cs
- HttpResponseBase.cs
- AccessibleObject.cs
- RequiredAttributeAttribute.cs
- SubclassTypeValidator.cs
- ConfigXmlText.cs
- HttpCookieCollection.cs
- StringDictionary.cs
- ErrorWebPart.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridItemCollection.cs
- HttpException.cs
- TextPatternIdentifiers.cs
- TypeLibConverter.cs
- DbDeleteCommandTree.cs
- ByteStack.cs
- PathNode.cs
- ClientData.cs
- LambdaReference.cs
- PerformanceCounterPermissionEntry.cs
- ClosableStream.cs