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
- JsonFormatMapping.cs
- SqlTypeConverter.cs
- RelationshipNavigation.cs
- Publisher.cs
- CompiledELinqQueryState.cs
- GPPOINTF.cs
- DataGridViewCellCancelEventArgs.cs
- CornerRadiusConverter.cs
- ListViewDataItem.cs
- TileModeValidation.cs
- ListViewItemMouseHoverEvent.cs
- mda.cs
- ToolboxComponentsCreatedEventArgs.cs
- QueryRewriter.cs
- categoryentry.cs
- DescriptionAttribute.cs
- PlacementWorkspace.cs
- ManifestResourceInfo.cs
- FrameAutomationPeer.cs
- CodeDomConfigurationHandler.cs
- FileVersion.cs
- TypeInfo.cs
- TableDetailsRow.cs
- BuildResult.cs
- SimpleWebHandlerParser.cs
- LinqToSqlWrapper.cs
- MemberMaps.cs
- NamedPipeConnectionPoolSettings.cs
- AdCreatedEventArgs.cs
- CookieProtection.cs
- HttpCacheParams.cs
- TargetFrameworkUtil.cs
- DragDropHelper.cs
- X509Chain.cs
- PointAnimationUsingKeyFrames.cs
- QueryResult.cs
- TextRangeSerialization.cs
- OracleRowUpdatedEventArgs.cs
- PropertyValueChangedEvent.cs
- AppDomain.cs
- DataRowView.cs
- DataPager.cs
- QuadraticBezierSegment.cs
- WpfWebRequestHelper.cs
- ProcessInputEventArgs.cs
- TimeStampChecker.cs
- Vector3DConverter.cs
- UxThemeWrapper.cs
- RelatedCurrencyManager.cs
- SpotLight.cs
- SystemInformation.cs
- StringReader.cs
- AspCompat.cs
- MergablePropertyAttribute.cs
- Accessors.cs
- DynamicDataExtensions.cs
- ExceptionHelpers.cs
- ContentFileHelper.cs
- Bitmap.cs
- DataReaderContainer.cs
- AttachmentCollection.cs
- SchemaTableOptionalColumn.cs
- NamespaceTable.cs
- DataSourceCollectionBase.cs
- ProcessHost.cs
- SmiRecordBuffer.cs
- MultiplexingDispatchMessageFormatter.cs
- ExceptionHandlersDesigner.cs
- GridViewPageEventArgs.cs
- GrammarBuilderWildcard.cs
- SelectionPattern.cs
- MgmtResManager.cs
- GridPattern.cs
- DateTimePicker.cs
- RowSpanVector.cs
- StructuralCache.cs
- ColumnTypeConverter.cs
- GradientStopCollection.cs
- SqlColumnizer.cs
- NullableDoubleSumAggregationOperator.cs
- LocalsItemDescription.cs
- GeometryHitTestResult.cs
- IntegerValidatorAttribute.cs
- BufferedReadStream.cs
- WindowCollection.cs
- NonSerializedAttribute.cs
- LogicalTreeHelper.cs
- DataSet.cs
- ProcessProtocolHandler.cs
- HtmlInputPassword.cs
- GetWinFXPath.cs
- PngBitmapDecoder.cs
- CloudCollection.cs
- ClientData.cs
- ISessionStateStore.cs
- OwnerDrawPropertyBag.cs
- ValidatingReaderNodeData.cs
- Variant.cs
- XmlDocumentFieldSchema.cs
- DrawingContextWalker.cs