Code:
/ FX-1434 / FX-1434 / 1.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
- X509CertificateChain.cs
- ReservationCollection.cs
- PathNode.cs
- DeploymentSection.cs
- Vector3DKeyFrameCollection.cs
- ItemsControl.cs
- TabControlAutomationPeer.cs
- SemaphoreSlim.cs
- WebZoneDesigner.cs
- BufferedWebEventProvider.cs
- GridViewColumnHeaderAutomationPeer.cs
- Condition.cs
- PipeStream.cs
- Font.cs
- SynchronizedMessageSource.cs
- TypographyProperties.cs
- ObjectMaterializedEventArgs.cs
- DesignerDataRelationship.cs
- TextDecorations.cs
- Camera.cs
- StandardOleMarshalObject.cs
- ICollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- SignatureGenerator.cs
- MediaCommands.cs
- ToolStripSystemRenderer.cs
- KeyEvent.cs
- NotCondition.cs
- XmlElementList.cs
- SecurityPermission.cs
- ListChangedEventArgs.cs
- OuterGlowBitmapEffect.cs
- MimeMultiPart.cs
- KnownTypes.cs
- ChangeConflicts.cs
- HorizontalAlignConverter.cs
- StorageAssociationSetMapping.cs
- DataGridTableCollection.cs
- AnnotationHelper.cs
- CheckBoxField.cs
- InputBinder.cs
- NameValueSectionHandler.cs
- FrameworkTextComposition.cs
- Drawing.cs
- EdmEntityTypeAttribute.cs
- DescendentsWalkerBase.cs
- MembershipUser.cs
- PresentationSource.cs
- DataGridViewDataErrorEventArgs.cs
- _PooledStream.cs
- DataListAutoFormat.cs
- ToolboxItemImageConverter.cs
- DataPointer.cs
- TransactionManager.cs
- SizeAnimationClockResource.cs
- CacheSection.cs
- TimeoutHelper.cs
- FileSecurity.cs
- DecoratedNameAttribute.cs
- SpeechEvent.cs
- AccessText.cs
- HttpHeaderCollection.cs
- AtlasWeb.Designer.cs
- InteropBitmapSource.cs
- TextSpan.cs
- PropertyInformation.cs
- SqlConnectionPoolProviderInfo.cs
- TypeUnloadedException.cs
- FastEncoder.cs
- TextTreeTextBlock.cs
- Parameter.cs
- RedirectionProxy.cs
- ListCommandEventArgs.cs
- ParameterBuilder.cs
- RefreshResponseInfo.cs
- CacheSection.cs
- StaticResourceExtension.cs
- Lasso.cs
- TransformedBitmap.cs
- ToggleButton.cs
- Transform3D.cs
- TrackingMemoryStreamFactory.cs
- DoubleLinkList.cs
- QueryAsyncResult.cs
- TreeNodeCollection.cs
- ActionItem.cs
- TextEditorMouse.cs
- BuildProvider.cs
- SafeFileMappingHandle.cs
- HttpMethodAttribute.cs
- ToolStripProgressBar.cs
- RegexMatchCollection.cs
- FatalException.cs
- Base64Encoding.cs
- ModelTreeEnumerator.cs
- ComponentSerializationService.cs
- UpdatePanelTriggerCollection.cs
- FontSource.cs
- ServiceNameElement.cs
- TypeSource.cs