Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / AssemblyCollection.cs / 1 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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); } } } // 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
- ConnectionInterfaceCollection.cs
- ColorConvertedBitmapExtension.cs
- Frame.cs
- EventArgs.cs
- DiscoveryEndpointElement.cs
- TemplateNodeContextMenu.cs
- ConvertEvent.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- CodeAccessPermission.cs
- IODescriptionAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SubclassTypeValidator.cs
- TableItemStyle.cs
- WebScriptServiceHostFactory.cs
- BulletDecorator.cs
- PartitionResolver.cs
- ClrPerspective.cs
- Query.cs
- TrustManagerMoreInformation.cs
- ScrollableControl.cs
- PolicyUtility.cs
- ListParagraph.cs
- PeerCollaboration.cs
- DesignerListAdapter.cs
- BackgroundFormatInfo.cs
- CSharpCodeProvider.cs
- ObjectItemCollection.cs
- CalendarDataBindingHandler.cs
- UTF8Encoding.cs
- SerializationInfo.cs
- QueryOpcode.cs
- GlyphInfoList.cs
- PageThemeCodeDomTreeGenerator.cs
- Brushes.cs
- ComEventsHelper.cs
- CodeArgumentReferenceExpression.cs
- ExceptionUtil.cs
- DataTable.cs
- XmlSortKeyAccumulator.cs
- DrawingContext.cs
- ApplicationSettingsBase.cs
- EditableTreeList.cs
- AsymmetricSignatureDeformatter.cs
- ResourceManagerWrapper.cs
- PathTooLongException.cs
- VectorValueSerializer.cs
- PageThemeParser.cs
- CodeDirectiveCollection.cs
- Accessible.cs
- BindToObject.cs
- TextEditorTyping.cs
- ListChangedEventArgs.cs
- DataServiceConfiguration.cs
- dataSvcMapFileLoader.cs
- SqlError.cs
- PreviewKeyDownEventArgs.cs
- TransactionCache.cs
- ExternalException.cs
- TriggerBase.cs
- ServicePointManagerElement.cs
- SHA1Managed.cs
- ResourceReferenceExpression.cs
- ModelVisual3D.cs
- IpcChannel.cs
- IntegerFacetDescriptionElement.cs
- DataServicePagingProviderWrapper.cs
- ToolStripManager.cs
- CommonProperties.cs
- ListViewUpdatedEventArgs.cs
- DuplicateWaitObjectException.cs
- Encoder.cs
- DES.cs
- RootBuilder.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ListBase.cs
- KnownBoxes.cs
- SecurityDocument.cs
- DataGridViewCell.cs
- UriParserTemplates.cs
- SoapConverter.cs
- LayoutUtils.cs
- ExecutionEngineException.cs
- IdleTimeoutMonitor.cs
- MetadataSerializer.cs
- CodeDelegateCreateExpression.cs
- EventDescriptor.cs
- EventRouteFactory.cs
- InfoCardSymmetricAlgorithm.cs
- SoapReflectionImporter.cs
- OleDbParameter.cs
- RsaKeyIdentifierClause.cs
- ListViewAutomationPeer.cs
- DynamicRendererThreadManager.cs
- MessageDirection.cs
- ImagingCache.cs
- XmlSchemaComplexContent.cs
- FontInfo.cs
- ImageMap.cs
- WeakEventTable.cs
- HtmlImageAdapter.cs