Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / AssemblyCollection.cs / 2 / AssemblyCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Compilation; using System.Reflection; using System.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [ConfigurationCollection(typeof(AssemblyInfo))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class AssemblyCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static AssemblyCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public AssemblyInfo this[int index] { get { return (AssemblyInfo)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public new AssemblyInfo this[String assemblyName] { get { return (AssemblyInfo)BaseGet(assemblyName); } } public void Add(AssemblyInfo assemblyInformation) { BaseAdd(assemblyInformation); } public void Remove(String key) { BaseRemove(key); } public void RemoveAt(int index) { BaseRemoveAt(index); } protected override ConfigurationElement CreateNewElement() { return new AssemblyInfo(); } protected override Object GetElementKey(ConfigurationElement element) { return ((AssemblyInfo)element).Assembly; } public void Clear() { BaseClear(); } internal bool IsRemoved(string key) { return BaseIsRemoved(key); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UndoManager.cs
- CommonXSendMessage.cs
- PreservationFileWriter.cs
- SafeViewOfFileHandle.cs
- ZipFileInfo.cs
- SecUtil.cs
- ColorContext.cs
- FunctionImportMapping.cs
- BulletedListDesigner.cs
- FastEncoderWindow.cs
- Form.cs
- _RequestLifetimeSetter.cs
- ParameterElementCollection.cs
- SecurityDocument.cs
- NamespaceInfo.cs
- PointHitTestResult.cs
- TableDetailsRow.cs
- HtmlControl.cs
- ValidationEventArgs.cs
- HttpRequestWrapper.cs
- CompiledELinqQueryState.cs
- PropertyValueChangedEvent.cs
- CachedFontFace.cs
- ShaperBuffers.cs
- ForwardPositionQuery.cs
- DecimalAnimation.cs
- ConsoleEntryPoint.cs
- Bezier.cs
- Icon.cs
- LambdaCompiler.Address.cs
- SqlTypeSystemProvider.cs
- RtfNavigator.cs
- ListBoxChrome.cs
- HandleCollector.cs
- ManipulationDelta.cs
- RemoteWebConfigurationHostServer.cs
- XmlNullResolver.cs
- HMACMD5.cs
- BoolExpression.cs
- WindowInteropHelper.cs
- AnimationStorage.cs
- InheritanceContextHelper.cs
- TextServicesCompartmentEventSink.cs
- RecordManager.cs
- SessionEndedEventArgs.cs
- FacetDescriptionElement.cs
- XmlAtomicValue.cs
- JpegBitmapEncoder.cs
- Evidence.cs
- LocationSectionRecord.cs
- TextEditorCharacters.cs
- DebugManager.cs
- InputLanguage.cs
- NoPersistScope.cs
- EdmError.cs
- Transactions.cs
- State.cs
- EdmFunctions.cs
- SqlTriggerContext.cs
- CommonDialog.cs
- DrawingAttributeSerializer.cs
- SelfIssuedSamlTokenFactory.cs
- TableFieldsEditor.cs
- HotSpotCollection.cs
- ReliableDuplexSessionChannel.cs
- LinqDataSourceInsertEventArgs.cs
- DragEvent.cs
- ByteStreamBufferedMessageData.cs
- WorkflowDesignerColors.cs
- SafeBitVector32.cs
- JsonFormatReaderGenerator.cs
- XmlSchemaSubstitutionGroup.cs
- DesignTimeParseData.cs
- AmbientEnvironment.cs
- RuntimeConfig.cs
- X509Certificate2Collection.cs
- RoutedEventConverter.cs
- BinaryObjectInfo.cs
- dataprotectionpermission.cs
- InternalBase.cs
- FixedSOMLineCollection.cs
- PersonalizableAttribute.cs
- InvariantComparer.cs
- RestHandler.cs
- CollectionChangeEventArgs.cs
- ThousandthOfEmRealPoints.cs
- XmlAttributeAttribute.cs
- XmlLanguage.cs
- CFStream.cs
- WriteTimeStream.cs
- ProtectedConfiguration.cs
- CookieProtection.cs
- UnknownBitmapEncoder.cs
- SqlMethodTransformer.cs
- MessageSecurityTokenVersion.cs
- ContentWrapperAttribute.cs
- CursorEditor.cs
- SpellerInterop.cs
- SynchronizationLockException.cs
- DATA_BLOB.cs