Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / UrlMappingCollection.cs / 5 / UrlMappingCollection.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.ComponentModel; using System.Web.Util; using System.Diagnostics; using System.Security.Permissions; [ConfigurationCollection(typeof(UrlMapping))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class UrlMappingCollection : ConfigurationElementCollection { private static readonly ConfigurationPropertyCollection _properties; static UrlMappingCollection() { _properties = new ConfigurationPropertyCollection(); } public UrlMappingCollection() : base(StringComparer.OrdinalIgnoreCase) { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public String[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public String GetKey(int index) { return (String)BaseGetKey(index); } public void Add(UrlMapping urlMapping) { BaseAdd(urlMapping); } public void Remove(string name) { BaseRemove(name); } public void Remove(UrlMapping urlMapping) { BaseRemove(GetElementKey(urlMapping)); } public void RemoveAt(int index) { BaseRemoveAt(index); } public new UrlMapping this[string name] { get { return (UrlMapping)BaseGet(name); } } public UrlMapping this[int index] { get { return (UrlMapping)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new UrlMapping(); } protected override Object GetElementKey(ConfigurationElement element) { return ((UrlMapping)element).Url; } } } // 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.ComponentModel; using System.Web.Util; using System.Diagnostics; using System.Security.Permissions; [ConfigurationCollection(typeof(UrlMapping))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class UrlMappingCollection : ConfigurationElementCollection { private static readonly ConfigurationPropertyCollection _properties; static UrlMappingCollection() { _properties = new ConfigurationPropertyCollection(); } public UrlMappingCollection() : base(StringComparer.OrdinalIgnoreCase) { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public String[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public String GetKey(int index) { return (String)BaseGetKey(index); } public void Add(UrlMapping urlMapping) { BaseAdd(urlMapping); } public void Remove(string name) { BaseRemove(name); } public void Remove(UrlMapping urlMapping) { BaseRemove(GetElementKey(urlMapping)); } public void RemoveAt(int index) { BaseRemoveAt(index); } public new UrlMapping this[string name] { get { return (UrlMapping)BaseGet(name); } } public UrlMapping this[int index] { get { return (UrlMapping)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new UrlMapping(); } protected override Object GetElementKey(ConfigurationElement element) { return ((UrlMapping)element).Url; } } } // 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
- DataIdProcessor.cs
- NamespaceEmitter.cs
- TypeSource.cs
- ParserExtension.cs
- BooleanAnimationBase.cs
- WebControlsSection.cs
- Parser.cs
- UshortList2.cs
- smtppermission.cs
- Misc.cs
- SQLDateTimeStorage.cs
- ToolStripContentPanelDesigner.cs
- WebServiceResponse.cs
- AxHost.cs
- AppAction.cs
- NotFiniteNumberException.cs
- GridItemCollection.cs
- HtmlTextViewAdapter.cs
- PasswordBox.cs
- UIHelper.cs
- KnownBoxes.cs
- ExpressionCopier.cs
- CodeSnippetTypeMember.cs
- SafeMILHandleMemoryPressure.cs
- SliderAutomationPeer.cs
- OdbcException.cs
- EventData.cs
- RefreshPropertiesAttribute.cs
- OutputCacheSettings.cs
- embossbitmapeffect.cs
- WindowsToolbar.cs
- BamlStream.cs
- BinaryReader.cs
- compensatingcollection.cs
- ToolStripTextBox.cs
- XamlFigureLengthSerializer.cs
- GiveFeedbackEventArgs.cs
- OciHandle.cs
- HashRepartitionStream.cs
- AccessedThroughPropertyAttribute.cs
- BindStream.cs
- DefaultAsyncDataDispatcher.cs
- Point3DAnimationUsingKeyFrames.cs
- Encoding.cs
- ReadOnlyAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- Tuple.cs
- PathFigureCollection.cs
- UnsafeNativeMethodsTablet.cs
- recordstatescratchpad.cs
- TransactionScope.cs
- IPAddress.cs
- _LoggingObject.cs
- ContractInferenceHelper.cs
- OleServicesContext.cs
- DataBoundControl.cs
- NamespaceEmitter.cs
- XmlReaderDelegator.cs
- OdbcException.cs
- TaiwanCalendar.cs
- ButtonColumn.cs
- WizardStepCollectionEditor.cs
- WorkflowInstance.cs
- PersonalizablePropertyEntry.cs
- CultureInfoConverter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SqlBulkCopy.cs
- TextContainerHelper.cs
- StreamGeometry.cs
- Emitter.cs
- Timer.cs
- BinaryReader.cs
- Scripts.cs
- RequestQueue.cs
- MenuAutomationPeer.cs
- SafeRightsManagementHandle.cs
- HashCryptoHandle.cs
- System.Data_BID.cs
- WebBrowsableAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- HtmlHead.cs
- XNodeSchemaApplier.cs
- DiscoveryMessageSequence11.cs
- Hex.cs
- AdPostCacheSubstitution.cs
- TreeNodeCollection.cs
- BindableTemplateBuilder.cs
- ObjectMemberMapping.cs
- ModifierKeysValueSerializer.cs
- NativeMethods.cs
- RangeBase.cs
- ListBoxItem.cs
- FormViewRow.cs
- CodeMemberMethod.cs
- IsolatedStorageException.cs
- StringBuilder.cs
- ConfigXmlSignificantWhitespace.cs
- AsyncPostBackTrigger.cs
- Token.cs