Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / AssemblyCollection.cs / 5 / 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
- HierarchicalDataSourceControl.cs
- SiteMapNodeCollection.cs
- AttributeCollection.cs
- SqlDataSourceView.cs
- CodeCommentStatementCollection.cs
- AppLevelCompilationSectionCache.cs
- NativeMethods.cs
- XmlQueryContext.cs
- LinqMaximalSubtreeNominator.cs
- Byte.cs
- RelationshipNavigation.cs
- figurelength.cs
- PropertyDescriptorCollection.cs
- XmlNavigatorStack.cs
- HttpDebugHandler.cs
- NotifyIcon.cs
- CodeLabeledStatement.cs
- ProviderCollection.cs
- ServiceHost.cs
- ProxyGenerator.cs
- AppDomainShutdownMonitor.cs
- EdmItemCollection.cs
- DoubleLinkListEnumerator.cs
- VirtualizedItemPattern.cs
- XPathEmptyIterator.cs
- AspNetPartialTrustHelpers.cs
- ResourceContainer.cs
- LocalizableAttribute.cs
- Stream.cs
- DataGridColumnCollection.cs
- TableColumn.cs
- FormsAuthenticationCredentials.cs
- CorrelationManager.cs
- CodeLabeledStatement.cs
- LingerOption.cs
- TemplateBindingExtension.cs
- ConfigurationSectionCollection.cs
- ClientBuildManager.cs
- IisTraceListener.cs
- ClientRolePrincipal.cs
- EventHandlerList.cs
- PropertyIDSet.cs
- ModifierKeysConverter.cs
- DataGridViewDesigner.cs
- StringArrayConverter.cs
- WinInetCache.cs
- SettingsPropertyWrongTypeException.cs
- EventLogTraceListener.cs
- HttpWrapper.cs
- WebScriptClientGenerator.cs
- DiscreteKeyFrames.cs
- InfoCardTrace.cs
- HttpServerVarsCollection.cs
- TextPenaltyModule.cs
- ExplicitDiscriminatorMap.cs
- ReferencedAssembly.cs
- ProcessMonitor.cs
- DocumentGrid.cs
- Transactions.cs
- RegisterInfo.cs
- mda.cs
- OSFeature.cs
- ItemTypeToolStripMenuItem.cs
- returneventsaver.cs
- SafeCoTaskMem.cs
- SafeViewOfFileHandle.cs
- AxParameterData.cs
- SamlAction.cs
- SaveFileDialogDesigner.cs
- ErrorFormatterPage.cs
- ScrollViewer.cs
- RemotingServices.cs
- FindProgressChangedEventArgs.cs
- QueryAsyncResult.cs
- LayoutEditorPart.cs
- MarginCollapsingState.cs
- TextServicesContext.cs
- SQLBinaryStorage.cs
- PropertyPath.cs
- BinaryConverter.cs
- AliasedSlot.cs
- PerformanceCountersElement.cs
- PolicyUnit.cs
- HebrewCalendar.cs
- WaitHandle.cs
- AlternationConverter.cs
- XamlReader.cs
- TabItem.cs
- OutputCacheModule.cs
- SizeLimitedCache.cs
- MultiBindingExpression.cs
- WorkflowFileItem.cs
- ClientCredentialsElement.cs
- MultiView.cs
- Opcode.cs
- KeyInterop.cs
- LiteralLink.cs
- BufferedGraphics.cs
- XmlSequenceWriter.cs
- CodeValidator.cs