Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ErrorHandler.cs
- Config.cs
- DefinitionBase.cs
- DbProviderFactory.cs
- MessageDesigner.cs
- BindingManagerDataErrorEventArgs.cs
- MessageSecurityProtocol.cs
- AnnotationResourceChangedEventArgs.cs
- CharacterMetricsDictionary.cs
- XmlSchemaSimpleContent.cs
- SByteConverter.cs
- SQLInt16Storage.cs
- WindowsIPAddress.cs
- Profiler.cs
- LoginDesignerUtil.cs
- RpcCryptoRequest.cs
- WebEvents.cs
- EntitySetDataBindingList.cs
- DiscoveryServiceExtension.cs
- DbMetaDataCollectionNames.cs
- RootCodeDomSerializer.cs
- XmlSchemaAnyAttribute.cs
- HwndSubclass.cs
- ValuePattern.cs
- FieldBuilder.cs
- DataGridViewCellValueEventArgs.cs
- ConfigurationPropertyCollection.cs
- ModelChangedEventArgsImpl.cs
- UnmanagedBitmapWrapper.cs
- CodeDomSerializer.cs
- AuthenticationConfig.cs
- DbConnectionHelper.cs
- DataObjectFieldAttribute.cs
- PtsHelper.cs
- IndexerHelper.cs
- ScriptControlManager.cs
- MessageAction.cs
- ListenerElementsCollection.cs
- COSERVERINFO.cs
- _SafeNetHandles.cs
- MimeTypeAttribute.cs
- State.cs
- ReadOnlyNameValueCollection.cs
- HostSecurityManager.cs
- DetailsViewPageEventArgs.cs
- CurrencyWrapper.cs
- StorageTypeMapping.cs
- DataTableMapping.cs
- SrgsNameValueTag.cs
- TextPattern.cs
- ForceCopyBuildProvider.cs
- UrlRoutingModule.cs
- XPathSingletonIterator.cs
- SignatureConfirmations.cs
- WsiProfilesElementCollection.cs
- DataGridViewButtonColumn.cs
- PreservationFileReader.cs
- ClickablePoint.cs
- Stroke.cs
- TagPrefixInfo.cs
- PropVariant.cs
- precedingquery.cs
- DefaultSection.cs
- ThreadStateException.cs
- DataComponentMethodGenerator.cs
- InternalsVisibleToAttribute.cs
- ObjectStateManagerMetadata.cs
- DoubleSumAggregationOperator.cs
- PaperSource.cs
- PasswordPropertyTextAttribute.cs
- MessageRpc.cs
- ISAPIApplicationHost.cs
- AnyReturnReader.cs
- AddInAttribute.cs
- KeyConverter.cs
- VectorCollectionValueSerializer.cs
- MessageEncodingBindingElementImporter.cs
- Base64Encoder.cs
- CacheForPrimitiveTypes.cs
- Point4DConverter.cs
- XmlCompatibilityReader.cs
- DetailsViewDeletedEventArgs.cs
- Message.cs
- UnwrappedTypesXmlSerializerManager.cs
- COM2PropertyBuilderUITypeEditor.cs
- NetworkInterface.cs
- MDIClient.cs
- ApplyHostConfigurationBehavior.cs
- RichTextBox.cs
- Int16.cs
- MSAAWinEventWrap.cs
- EventLog.cs
- XmlNamespaceManager.cs
- MultiBinding.cs
- PasswordTextNavigator.cs
- WarningException.cs
- StateInitialization.cs
- VectorCollection.cs
- EventPropertyMap.cs
- TemplatedMailWebEventProvider.cs