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
- XmlSchema.cs
- Clipboard.cs
- FixUpCollection.cs
- PointValueSerializer.cs
- DbParameterCollectionHelper.cs
- DefaultValueConverter.cs
- RegexWriter.cs
- ControlBindingsCollection.cs
- FontSizeConverter.cs
- UrlMappingsModule.cs
- InvokeProviderWrapper.cs
- DebuggerAttributes.cs
- PropertyManager.cs
- ControlAdapter.cs
- SafeHandle.cs
- CurrencyWrapper.cs
- BooleanSwitch.cs
- FaultCallbackWrapper.cs
- XmlSchemaInfo.cs
- PeerCredentialElement.cs
- MapPathBasedVirtualPathProvider.cs
- StructuredType.cs
- ManagementException.cs
- ClientScriptManagerWrapper.cs
- OleAutBinder.cs
- WebBaseEventKeyComparer.cs
- ReadOnlyDataSource.cs
- PriorityRange.cs
- XmlReflectionMember.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SqlClientMetaDataCollectionNames.cs
- AsymmetricSignatureFormatter.cs
- SchemaMerger.cs
- GenericUriParser.cs
- PackageController.cs
- ChangesetResponse.cs
- DisplayMemberTemplateSelector.cs
- XPathDocumentNavigator.cs
- MatrixConverter.cs
- ConfigXmlDocument.cs
- AddInBase.cs
- pingexception.cs
- CodeArrayIndexerExpression.cs
- RangeBase.cs
- CqlLexerHelpers.cs
- Profiler.cs
- EarlyBoundInfo.cs
- MutexSecurity.cs
- BaseTemplateBuildProvider.cs
- SqlServer2KCompatibilityAnnotation.cs
- SafeNativeMethodsOther.cs
- Brush.cs
- ConnectorSelectionGlyph.cs
- EditorPart.cs
- CqlParserHelpers.cs
- SortExpressionBuilder.cs
- RoleGroupCollection.cs
- TdsRecordBufferSetter.cs
- ByteKeyFrameCollection.cs
- TransformValueSerializer.cs
- ProfileInfo.cs
- DataTemplateKey.cs
- HitTestFilterBehavior.cs
- Crc32Helper.cs
- DeclarativeCatalogPart.cs
- XmlEncoding.cs
- WebUtility.cs
- TextRenderingModeValidation.cs
- ValueSerializer.cs
- CryptoApi.cs
- ElementsClipboardData.cs
- UpdateException.cs
- HtmlInputFile.cs
- IsolatedStorageFile.cs
- AsyncCompletedEventArgs.cs
- RightsManagementErrorHandler.cs
- DataPagerField.cs
- HMACSHA256.cs
- Walker.cs
- DbSource.cs
- CompositeFontParser.cs
- ByteStreamGeometryContext.cs
- DoubleAnimationUsingKeyFrames.cs
- BamlReader.cs
- SystemWebSectionGroup.cs
- WhitespaceReader.cs
- MatrixKeyFrameCollection.cs
- BaseHashHelper.cs
- TableHeaderCell.cs
- RoleManagerEventArgs.cs
- DataChangedEventManager.cs
- SqlInternalConnection.cs
- TextEvent.cs
- MobileControlsSectionHelper.cs
- ParserOptions.cs
- ThreadSafeList.cs
- Registry.cs
- HttpDictionary.cs
- ContentIterators.cs
- SQLInt32Storage.cs