Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / AssemblyCollection.cs / 3 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Internal.cs
- WebBaseEventKeyComparer.cs
- WebBrowsableAttribute.cs
- DataGridParentRows.cs
- CategoryAttribute.cs
- SqlLiftIndependentRowExpressions.cs
- DataGridViewTextBoxEditingControl.cs
- Shape.cs
- RightsManagementPermission.cs
- CodeDelegateInvokeExpression.cs
- SocketElement.cs
- XPathQilFactory.cs
- DateTimeFormatInfo.cs
- ToolStripDropDownDesigner.cs
- CriticalExceptions.cs
- PageStatePersister.cs
- Models.cs
- HttpCachePolicy.cs
- WindowsPrincipal.cs
- __Error.cs
- IndentedTextWriter.cs
- DesignerResources.cs
- OlePropertyStructs.cs
- Deserializer.cs
- DBSqlParserColumnCollection.cs
- ClientSideQueueItem.cs
- SoapHeaderAttribute.cs
- DeclarativeCatalogPart.cs
- LinkedList.cs
- Column.cs
- SpellerInterop.cs
- DecoderReplacementFallback.cs
- Currency.cs
- RenderTargetBitmap.cs
- BooleanStorage.cs
- AssemblyName.cs
- XmlSerializerFactory.cs
- ImageClickEventArgs.cs
- EnumUnknown.cs
- DataGridViewComboBoxEditingControl.cs
- ReferencedCollectionType.cs
- ModelFunction.cs
- ResolveMatchesMessage11.cs
- SafeHandles.cs
- EnumConverter.cs
- SessionStateContainer.cs
- TextProperties.cs
- UpdatePanelTriggerCollection.cs
- CodeIndexerExpression.cs
- ResponseBodyWriter.cs
- DataPagerFieldCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- BitmapSizeOptions.cs
- ColumnPropertiesGroup.cs
- SimpleApplicationHost.cs
- thaishape.cs
- ConfigurationSectionCollection.cs
- KnownBoxes.cs
- AncillaryOps.cs
- X509ServiceCertificateAuthenticationElement.cs
- ExpressionBuilderCollection.cs
- Invariant.cs
- LayoutUtils.cs
- BulletDecorator.cs
- ExecutionContext.cs
- IListConverters.cs
- SecurityTokenRequirement.cs
- CellTreeNode.cs
- AuthenticationModuleElement.cs
- GorillaCodec.cs
- SqlAliasesReferenced.cs
- ProfileServiceManager.cs
- HandledEventArgs.cs
- EntityViewGenerator.cs
- ListParagraph.cs
- IdentityHolder.cs
- SecurityCookieModeValidator.cs
- PriorityQueue.cs
- DataServiceRequestOfT.cs
- XmlResolver.cs
- ActivationProxy.cs
- BitmapEffectRenderDataResource.cs
- TextDecoration.cs
- AnnotationHelper.cs
- QueryExecutionOption.cs
- TextBoxLine.cs
- InputMethod.cs
- MatrixAnimationBase.cs
- SecurityTokenProviderContainer.cs
- Transform3DGroup.cs
- XsltCompileContext.cs
- CompressStream.cs
- BitmapCache.cs
- DeflateEmulationStream.cs
- QilGenerator.cs
- AutomationTextAttribute.cs
- IODescriptionAttribute.cs
- FaultReason.cs
- FontFamily.cs
- SecUtil.cs