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
- Lasso.cs
- TextProperties.cs
- BinaryFormatter.cs
- FlowDocument.cs
- FontStyleConverter.cs
- RewritingSimplifier.cs
- AffineTransform3D.cs
- ExpandSegment.cs
- HttpMethodConstraint.cs
- DataGridAddNewRow.cs
- HighContrastHelper.cs
- SystemPens.cs
- TextFormatterImp.cs
- RewritingPass.cs
- BindingSource.cs
- GestureRecognizer.cs
- Html32TextWriter.cs
- SafeRightsManagementQueryHandle.cs
- sqlcontext.cs
- Tablet.cs
- MruCache.cs
- XmlQueryType.cs
- RightsManagementPermission.cs
- XmlCharCheckingWriter.cs
- Win32.cs
- Helper.cs
- TypefaceCollection.cs
- ListViewUpdatedEventArgs.cs
- TreeIterators.cs
- WindowsProgressbar.cs
- SystemIPGlobalStatistics.cs
- DynamicResourceExtension.cs
- PrintDialogException.cs
- WinCategoryAttribute.cs
- SiteMapPath.cs
- JsonFormatGeneratorStatics.cs
- XmlSchemaAnnotated.cs
- EasingKeyFrames.cs
- HtmlHistory.cs
- NavigationWindowAutomationPeer.cs
- CapabilitiesPattern.cs
- PerfCounters.cs
- SafeNativeMethods.cs
- ContextMenuStrip.cs
- SiteMapPath.cs
- Journal.cs
- ListManagerBindingsCollection.cs
- HeaderUtility.cs
- LineInfo.cs
- Bitmap.cs
- ProgressChangedEventArgs.cs
- SerialPort.cs
- DoubleAnimationUsingPath.cs
- TemplateField.cs
- COM2ExtendedBrowsingHandler.cs
- UpdateRecord.cs
- Pool.cs
- SchemaTableOptionalColumn.cs
- ListManagerBindingsCollection.cs
- Span.cs
- GenericWebPart.cs
- TableProviderWrapper.cs
- DocumentReferenceCollection.cs
- EventMap.cs
- ArglessEventHandlerProxy.cs
- ControlCachePolicy.cs
- ComplexObject.cs
- ListCollectionView.cs
- OpenFileDialog.cs
- AutoCompleteStringCollection.cs
- RightsManagementPermission.cs
- CodeIdentifier.cs
- FixedTextBuilder.cs
- ViewUtilities.cs
- TabRenderer.cs
- SystemColors.cs
- ListSortDescription.cs
- Material.cs
- ElementAction.cs
- PassportIdentity.cs
- FieldBuilder.cs
- XmlTextReaderImpl.cs
- LongValidator.cs
- Profiler.cs
- NavigationPropertySingletonExpression.cs
- GeometryGroup.cs
- ServiceAuthorizationBehavior.cs
- AnnotationStore.cs
- ReadOnlyTernaryTree.cs
- ToolStripMenuItemDesigner.cs
- SmtpTransport.cs
- TemplateBuilder.cs
- GPStream.cs
- DomNameTable.cs
- AssemblyBuilderData.cs
- FlowDocumentReader.cs
- ScriptingAuthenticationServiceSection.cs
- ResourceAttributes.cs
- counter.cs
- SafePointer.cs