Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / CompilerCollection.cs / 3 / CompilerCollection.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(Compiler), AddItemName = "compiler", CollectionType = ConfigurationElementCollectionType.BasicMap)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class CompilerCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static CompilerCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public CompilerCollection() : base(StringComparer.OrdinalIgnoreCase) { } // public properties public string[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public new Compiler this[string language] { get { return (Compiler)BaseGet(language); } } public Compiler this[int index] { get { return (Compiler)BaseGet(index); } // set // { // throw new ConfigurationErrorsException(SR.GetString(SR.Config_read_only_section_cannot_be_set, "CompilerCollection")); // if (BaseGet(index) != null) // BaseRemoveAt(index); // BaseAdd(index,value); // } } // Protected Overrides protected override ConfigurationElement CreateNewElement() { return new Compiler(); } protected override Object GetElementKey(ConfigurationElement element) { return ((Compiler)element).Language; } protected override string ElementName { get { return "compiler"; } } public override ConfigurationElementCollectionType CollectionType { get { return ConfigurationElementCollectionType.BasicMap; } } // public methods // public void Add(Compiler compiler) { // BaseAdd(compiler); // } // public void Clear() { // BaseClear(); // } public Compiler Get(int index) { return (Compiler)BaseGet(index); } public Compiler Get(string language) { return (Compiler)BaseGet(language); } public String GetKey(int index) { return (String) BaseGetKey(index); } // public void Remove(string language) { // BaseRemove(language); // } // public void RemoveAt(int index) { // BaseRemoveAt(index); // } // public void Set(Compiler compiler) { // BaseAdd(compiler,false); // } } } // 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
- FunctionImportMapping.cs
- RSACryptoServiceProvider.cs
- EntityViewContainer.cs
- PropertyDescriptorComparer.cs
- Fonts.cs
- SerializableAttribute.cs
- ManagementClass.cs
- SystemResourceKey.cs
- ComponentEditorForm.cs
- KeyValueSerializer.cs
- _SslSessionsCache.cs
- PanelStyle.cs
- PieceNameHelper.cs
- LicenseProviderAttribute.cs
- NativeConfigurationLoader.cs
- DetailsViewDeletedEventArgs.cs
- Hashtable.cs
- ELinqQueryState.cs
- OrderedEnumerableRowCollection.cs
- RawAppCommandInputReport.cs
- SessionEndingEventArgs.cs
- BeginEvent.cs
- DataGridColumn.cs
- PrintDialog.cs
- EntityCommand.cs
- TableTextElementCollectionInternal.cs
- ListViewSelectEventArgs.cs
- ConfigurationValue.cs
- SHA256.cs
- PriorityQueue.cs
- AstTree.cs
- ToolStripItemGlyph.cs
- DrawItemEvent.cs
- CellParagraph.cs
- XmlDataLoader.cs
- WebServiceHandlerFactory.cs
- Classification.cs
- CodeDelegateInvokeExpression.cs
- DataListCommandEventArgs.cs
- Compiler.cs
- ApplicationManager.cs
- PrimitiveSchema.cs
- ClipboardProcessor.cs
- TextDecorationCollection.cs
- State.cs
- DisplayNameAttribute.cs
- OleDbInfoMessageEvent.cs
- ExitEventArgs.cs
- HTMLTextWriter.cs
- SoapExtensionStream.cs
- CFGGrammar.cs
- ProgressBarRenderer.cs
- TextRenderer.cs
- ChannelCacheDefaults.cs
- TextBlockAutomationPeer.cs
- TimeoutValidationAttribute.cs
- ExecutionEngineException.cs
- DesignerActionKeyboardBehavior.cs
- WebServiceParameterData.cs
- HtmlEmptyTagControlBuilder.cs
- BuildResult.cs
- RectangleGeometry.cs
- SchemaRegistration.cs
- ElementsClipboardData.cs
- SimpleMailWebEventProvider.cs
- updatecommandorderer.cs
- IndependentAnimationStorage.cs
- XmlChildEnumerator.cs
- _UncName.cs
- XmlSerializationReader.cs
- TableColumn.cs
- RequestValidator.cs
- hresults.cs
- WindowHideOrCloseTracker.cs
- ApplicationProxyInternal.cs
- GridToolTip.cs
- GPPOINT.cs
- WindowsServiceElement.cs
- SqlConnectionHelper.cs
- SpecialFolderEnumConverter.cs
- ObjectViewEntityCollectionData.cs
- DiagnosticSection.cs
- OleDbCommandBuilder.cs
- FormClosingEvent.cs
- PartialList.cs
- _SafeNetHandles.cs
- FixedSchema.cs
- StructuralType.cs
- metadatamappinghashervisitor.cs
- IFlowDocumentViewer.cs
- Win32.cs
- SettingsSection.cs
- ChineseLunisolarCalendar.cs
- ProfileGroupSettingsCollection.cs
- GenericRootAutomationPeer.cs
- Parameter.cs
- WebRequestModulesSection.cs
- CmsInterop.cs
- storepermissionattribute.cs
- FontNamesConverter.cs