Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / ClientTargetCollection.cs / 3 / 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; } } } // 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
- BamlReader.cs
- Encoder.cs
- ConversionContext.cs
- Inline.cs
- XmlSchemaExporter.cs
- DisplayMemberTemplateSelector.cs
- rsa.cs
- FormViewInsertedEventArgs.cs
- MarkupWriter.cs
- DispatcherOperation.cs
- CompressEmulationStream.cs
- TrackBarRenderer.cs
- ByValueEqualityComparer.cs
- unitconverter.cs
- FullTextLine.cs
- GeometryCombineModeValidation.cs
- EmptyStringExpandableObjectConverter.cs
- DbProviderFactory.cs
- bindurihelper.cs
- CurrencyWrapper.cs
- PrintDialogException.cs
- EntityDataSourceChangedEventArgs.cs
- SqlDependencyUtils.cs
- WorkflowServiceAttributes.cs
- DesignTimeHTMLTextWriter.cs
- XmlSchemaComplexContentRestriction.cs
- RolePrincipal.cs
- NativeMethods.cs
- AnnotationResource.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartTransformerCollection.cs
- Authorization.cs
- IISMapPath.cs
- ListSortDescription.cs
- RecordBuilder.cs
- OnOperation.cs
- PropertyValue.cs
- Point3DCollection.cs
- DateTimeFormatInfoScanner.cs
- WindowsListView.cs
- ReadWriteObjectLock.cs
- BlockingCollection.cs
- UnsettableComboBox.cs
- ProcessProtocolHandler.cs
- Transform3DGroup.cs
- DatatypeImplementation.cs
- StreamGeometry.cs
- SystemInformation.cs
- WindowsGraphicsWrapper.cs
- SudsCommon.cs
- EntityConnection.cs
- DataGridPagerStyle.cs
- PipelineDeploymentState.cs
- TreeViewCancelEvent.cs
- DbDeleteCommandTree.cs
- Rethrow.cs
- ImportCatalogPart.cs
- EnvelopedPkcs7.cs
- XPathException.cs
- ServiceOperationListItemList.cs
- IBuiltInEvidence.cs
- SafeCryptContextHandle.cs
- ProvidePropertyAttribute.cs
- PrintPreviewControl.cs
- EditorZoneBase.cs
- PointCollectionValueSerializer.cs
- HtmlInputButton.cs
- Zone.cs
- Range.cs
- _ScatterGatherBuffers.cs
- CommonDialog.cs
- RequestCachePolicyConverter.cs
- VersionPair.cs
- WizardStepBase.cs
- TypeSystem.cs
- DataGridColumnReorderingEventArgs.cs
- SpeechDetectedEventArgs.cs
- FontDifferentiator.cs
- XmlElementCollection.cs
- WinFormsUtils.cs
- GenericIdentity.cs
- Message.cs
- AttachedPropertyMethodSelector.cs
- PermissionSet.cs
- IDictionary.cs
- PeerInvitationResponse.cs
- SafeReadContext.cs
- XmlNamespaceDeclarationsAttribute.cs
- SeverityFilter.cs
- PagesChangedEventArgs.cs
- VectorKeyFrameCollection.cs
- DataSvcMapFile.cs
- DataExpression.cs
- FixedDocumentPaginator.cs
- HtmlTableCell.cs
- WhereQueryOperator.cs
- DockingAttribute.cs
- xmlglyphRunInfo.cs
- UxThemeWrapper.cs
- ISFClipboardData.cs