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
- Model3D.cs
- WorkflowFileItem.cs
- SizeLimitedCache.cs
- HttpModuleAction.cs
- PathStreamGeometryContext.cs
- AvtEvent.cs
- TreeView.cs
- ToolStripLabel.cs
- StrongName.cs
- StringFormat.cs
- CodeConstructor.cs
- InputLangChangeEvent.cs
- DockAndAnchorLayout.cs
- SQLMoneyStorage.cs
- WebServiceEnumData.cs
- Rectangle.cs
- ContextMenuService.cs
- CompositeKey.cs
- LineServicesCallbacks.cs
- DataGridAddNewRow.cs
- WebPartConnectionsCancelEventArgs.cs
- Point.cs
- ResponseBodyWriter.cs
- HtmlFormParameterWriter.cs
- DrawingBrush.cs
- Rect3D.cs
- DataFieldConverter.cs
- AttributeQuery.cs
- GeometryGroup.cs
- ClientRuntimeConfig.cs
- FixedSOMLineCollection.cs
- TypographyProperties.cs
- Int64AnimationUsingKeyFrames.cs
- VirtualPath.cs
- SearchForVirtualItemEventArgs.cs
- Char.cs
- PathSegment.cs
- _TransmitFileOverlappedAsyncResult.cs
- OperationInfoBase.cs
- ImageSourceTypeConverter.cs
- StatusBar.cs
- TemplateApplicationHelper.cs
- ACL.cs
- SerTrace.cs
- DiagnosticsConfigurationHandler.cs
- PageFunction.cs
- TableCellCollection.cs
- Inflater.cs
- IsolatedStorageFileStream.cs
- updatecommandorderer.cs
- SharedConnectionInfo.cs
- safesecurityhelperavalon.cs
- Common.cs
- SqlCacheDependencyDatabase.cs
- EntryPointNotFoundException.cs
- ObjectAnimationUsingKeyFrames.cs
- EastAsianLunisolarCalendar.cs
- XmlName.cs
- SmiSettersStream.cs
- ActiveXContainer.cs
- WpfGeneratedKnownTypes.cs
- CodeGenerator.cs
- OciEnlistContext.cs
- UDPClient.cs
- ExceptionHandler.cs
- LocationInfo.cs
- InvalidAsynchronousStateException.cs
- NavigationEventArgs.cs
- BitmapEffect.cs
- TypeSource.cs
- TracePayload.cs
- DataContractAttribute.cs
- AsnEncodedData.cs
- IApplicationTrustManager.cs
- VectorAnimationBase.cs
- ColumnHeaderCollectionEditor.cs
- IdentityManager.cs
- HashCodeCombiner.cs
- ExtenderControl.cs
- StyleSelector.cs
- ScriptDescriptor.cs
- NetworkStream.cs
- TextServicesLoader.cs
- WindowsToolbar.cs
- EntityException.cs
- HandleRef.cs
- UnaryNode.cs
- DesignerAdapterAttribute.cs
- DynamicDiscoveryDocument.cs
- SizeFConverter.cs
- FormViewCommandEventArgs.cs
- XmlHelper.cs
- SystemEvents.cs
- DispatchRuntime.cs
- DurableEnlistmentState.cs
- AutomationProperties.cs
- ProcessThreadCollection.cs
- TypeTypeConverter.cs
- FormsAuthenticationCredentials.cs
- _CacheStreams.cs