Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionElementCollection.cs / 1 / 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.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityException.cs
- OleCmdHelper.cs
- ClipboardData.cs
- ImportedNamespaceContextItem.cs
- PeerName.cs
- OleAutBinder.cs
- _TransmitFileOverlappedAsyncResult.cs
- Compiler.cs
- DataErrorValidationRule.cs
- BindingMAnagerBase.cs
- TextParagraphView.cs
- AmbientProperties.cs
- Delegate.cs
- InkPresenter.cs
- BooleanAnimationUsingKeyFrames.cs
- MinimizableAttributeTypeConverter.cs
- Ipv6Element.cs
- Base64Decoder.cs
- Claim.cs
- DateTimeOffsetStorage.cs
- BinaryObjectWriter.cs
- FontInfo.cs
- EmbeddedMailObject.cs
- TreeNodeSelectionProcessor.cs
- ParserExtension.cs
- FilterElement.cs
- XmlMemberMapping.cs
- ObjectListCommand.cs
- DataGridViewBindingCompleteEventArgs.cs
- HitTestParameters3D.cs
- GeometryConverter.cs
- keycontainerpermission.cs
- FontNamesConverter.cs
- ScopeCompiler.cs
- DataRowIndexBuffer.cs
- ListenerAdapterBase.cs
- ProfileManager.cs
- XmlSerializerAssemblyAttribute.cs
- RepeaterItem.cs
- XmlObjectSerializerReadContextComplex.cs
- ConstructorBuilder.cs
- FixedSOMImage.cs
- _ListenerAsyncResult.cs
- ConfigurationException.cs
- Composition.cs
- Rss20ItemFormatter.cs
- SafeEventHandle.cs
- XXXOnTypeBuilderInstantiation.cs
- PropertyGeneratedEventArgs.cs
- MemberInfoSerializationHolder.cs
- WindowsFormsSectionHandler.cs
- ClientApiGenerator.cs
- UniqueContractNameValidationBehavior.cs
- RequestUriProcessor.cs
- SecurityDescriptor.cs
- CultureInfo.cs
- CommonDialog.cs
- ThreadInterruptedException.cs
- BCLDebug.cs
- HorizontalAlignConverter.cs
- SQLString.cs
- RMEnrollmentPage3.cs
- Logging.cs
- DocumentEventArgs.cs
- DataGridViewComponentPropertyGridSite.cs
- RealProxy.cs
- DocumentPage.cs
- Effect.cs
- SortFieldComparer.cs
- SoapTypeAttribute.cs
- PageAction.cs
- CommandHelper.cs
- IPEndPoint.cs
- TemplateControl.cs
- Pointer.cs
- OleDbException.cs
- BitmapCodecInfo.cs
- DefaultAssemblyResolver.cs
- CodeIdentifiers.cs
- Int32RectConverter.cs
- DesignTimeVisibleAttribute.cs
- DataProviderNameConverter.cs
- MediaScriptCommandRoutedEventArgs.cs
- OleDbErrorCollection.cs
- ObjectDisposedException.cs
- GeneralTransform3D.cs
- UpdateRecord.cs
- RotateTransform.cs
- ContentPlaceHolder.cs
- ClientRuntimeConfig.cs
- KeyedPriorityQueue.cs
- CounterSet.cs
- ClassData.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ProgressBarRenderer.cs
- SerializationBinder.cs
- BindingFormattingDialog.cs
- MasterPageBuildProvider.cs
- DrawingGroupDrawingContext.cs
- DoubleLinkListEnumerator.cs