Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / ClientTargetCollection.cs / 2 / ClientTargetCollection.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(ClientTarget))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ClientTargetCollection : ConfigurationElementCollection { private static readonly ConfigurationPropertyCollection _properties; static ClientTargetCollection() { _properties = new ConfigurationPropertyCollection(); } public ClientTargetCollection() : 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(ClientTarget clientTarget) { BaseAdd(clientTarget); } public void Remove(string name) { BaseRemove(name); } public void Remove(ClientTarget clientTarget) { BaseRemove(GetElementKey(clientTarget)); } public void RemoveAt(int index) { BaseRemoveAt(index); } public new ClientTarget this[string name] { get { return (ClientTarget)BaseGet(name); } } public ClientTarget this[int index] { get { return (ClientTarget)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new ClientTarget(); } protected override Object GetElementKey(ConfigurationElement element) { return ((ClientTarget)element).Alias; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PngBitmapDecoder.cs
- PanelDesigner.cs
- EntityProviderServices.cs
- ProviderConnectionPoint.cs
- XNodeSchemaApplier.cs
- BrowserInteropHelper.cs
- PerfService.cs
- HGlobalSafeHandle.cs
- ExceptionValidationRule.cs
- Rect3D.cs
- FileCodeGroup.cs
- UserPreferenceChangedEventArgs.cs
- ElementAction.cs
- TableMethodGenerator.cs
- XPathNodeInfoAtom.cs
- TableDetailsRow.cs
- BitmapEffectRenderDataResource.cs
- XomlCompilerParameters.cs
- XmlSchemaInfo.cs
- ListArgumentProvider.cs
- Char.cs
- Timer.cs
- UrlAuthFailedErrorFormatter.cs
- AbstractExpressions.cs
- Wildcard.cs
- SqlDeflator.cs
- BindUriHelper.cs
- RealProxy.cs
- Vector3D.cs
- TraceInternal.cs
- BoundPropertyEntry.cs
- NameValueSectionHandler.cs
- DecoderExceptionFallback.cs
- PropertyItem.cs
- CompModSwitches.cs
- Int16AnimationUsingKeyFrames.cs
- ListBoxDesigner.cs
- CustomPopupPlacement.cs
- UseAttributeSetsAction.cs
- Odbc32.cs
- StaticDataManager.cs
- Calendar.cs
- Int32Rect.cs
- GestureRecognitionResult.cs
- WebBrowserUriTypeConverter.cs
- ConnectionPoolManager.cs
- ServiceBuildProvider.cs
- ObjectFullSpanRewriter.cs
- CheckedPointers.cs
- Inflater.cs
- GridViewRowPresenter.cs
- IndexedString.cs
- DataMember.cs
- XmlUtil.cs
- XPathBuilder.cs
- QueryResponse.cs
- Button.cs
- PostBackTrigger.cs
- ISCIIEncoding.cs
- SqlStream.cs
- EntitySqlQueryBuilder.cs
- ClrPerspective.cs
- EllipticalNodeOperations.cs
- TypeBrowserDialog.cs
- ControlValuePropertyAttribute.cs
- HMACSHA256.cs
- DetailsViewInsertedEventArgs.cs
- Hashtable.cs
- EdmValidator.cs
- PrinterResolution.cs
- TreeBuilderBamlTranslator.cs
- CompilerHelpers.cs
- Task.cs
- MsdtcClusterUtils.cs
- ShaperBuffers.cs
- GeometryModel3D.cs
- recordstatefactory.cs
- WindowsIPAddress.cs
- TextDecoration.cs
- SizeConverter.cs
- EntityKey.cs
- DataServiceResponse.cs
- X509ChainElement.cs
- cookiecontainer.cs
- login.cs
- SQLDecimal.cs
- MgmtConfigurationRecord.cs
- Light.cs
- DataGridDesigner.cs
- BamlWriter.cs
- FontEmbeddingManager.cs
- OdbcInfoMessageEvent.cs
- FileVersionInfo.cs
- RegionData.cs
- ReachSerializationCacheItems.cs
- InputReferenceExpression.cs
- SplineKeyFrames.cs
- AppDomain.cs
- TokenBasedSetEnumerator.cs
- IODescriptionAttribute.cs