Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ProviderConnectionPointCollection.cs / 1305376 / ProviderConnectionPointCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.Collections.Specialized; using System.Globalization; public sealed class ProviderConnectionPointCollection : ReadOnlyCollectionBase { private HybridDictionary _ids; public ProviderConnectionPointCollection() { } public ProviderConnectionPointCollection(ICollection connectionPoints) { if (connectionPoints == null) { throw new ArgumentNullException("connectionPoints"); } _ids = new HybridDictionary(connectionPoints.Count, true /* caseInsensitive */); foreach (object obj in connectionPoints) { if (obj == null) { throw new ArgumentException(SR.GetString(SR.Collection_CantAddNull), "connectionPoints"); } ProviderConnectionPoint point = obj as ProviderConnectionPoint; if (point == null) { throw new ArgumentException(SR.GetString(SR.Collection_InvalidType, "ProviderConnectionPoint"), "connectionPoints"); } string id = point.ID; if (!_ids.Contains(id)) { InnerList.Add(point); _ids.Add(id, point); } else { throw new ArgumentException(SR.GetString( SR.WebPart_Collection_DuplicateID, "ProviderConnectionPoint", id), "connectionPoints"); } } } public ProviderConnectionPoint Default { get { return this[ConnectionPoint.DefaultID]; } } public ProviderConnectionPoint this[int index] { get { return (ProviderConnectionPoint)InnerList[index]; } } public ProviderConnectionPoint this[string id] { get { return ((_ids != null) ? (ProviderConnectionPoint)_ids[id] : null); } } public bool Contains(ProviderConnectionPoint connectionPoint) { return InnerList.Contains(connectionPoint); } public int IndexOf(ProviderConnectionPoint connectionPoint) { return InnerList.IndexOf(connectionPoint); } public void CopyTo(ProviderConnectionPoint[] array, int index) { InnerList.CopyTo(array, index); } } } // 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
- LocatorGroup.cs
- DynamicDataManager.cs
- EntityCommandExecutionException.cs
- DataGridItem.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DoWorkEventArgs.cs
- Roles.cs
- PointCollection.cs
- NumberFunctions.cs
- IncrementalReadDecoders.cs
- AssemblyName.cs
- WebPartConnectionsCancelEventArgs.cs
- ImageListImage.cs
- IntSumAggregationOperator.cs
- EntitySqlQueryBuilder.cs
- ErrorHandlerFaultInfo.cs
- TraceLog.cs
- KeyedHashAlgorithm.cs
- KeyManager.cs
- WMIInterop.cs
- FileVersionInfo.cs
- Pair.cs
- DataSourceControl.cs
- RelatedImageListAttribute.cs
- CompressionTracing.cs
- ListViewTableCell.cs
- TypeConverterHelper.cs
- ConfigurationManagerHelper.cs
- VariableQuery.cs
- DataSourceViewSchemaConverter.cs
- ActivityWithResultWrapper.cs
- SetIndexBinder.cs
- DesignerActionMethodItem.cs
- ExpressionPrefixAttribute.cs
- BitmapInitialize.cs
- PnrpPermission.cs
- SessionStateItemCollection.cs
- ManagedWndProcTracker.cs
- CompositeControl.cs
- ToolStripContainerActionList.cs
- X509WindowsSecurityToken.cs
- PathHelper.cs
- JobPageOrder.cs
- FullTextBreakpoint.cs
- COM2ExtendedBrowsingHandler.cs
- BaseCodeDomTreeGenerator.cs
- InfoCardMetadataExchangeClient.cs
- ScrollProperties.cs
- WS2007HttpBindingElement.cs
- TcpClientSocketManager.cs
- QuaternionKeyFrameCollection.cs
- _NestedMultipleAsyncResult.cs
- LoginName.cs
- ListBase.cs
- ProfileSection.cs
- TcpAppDomainProtocolHandler.cs
- TransformerInfoCollection.cs
- EventLogger.cs
- UnsafeNetInfoNativeMethods.cs
- ConnectionProviderAttribute.cs
- exports.cs
- EntityWithChangeTrackerStrategy.cs
- TraceRecord.cs
- ACL.cs
- UpWmlPageAdapter.cs
- CompoundFileDeflateTransform.cs
- ServiceHostingEnvironment.cs
- CompositeActivityTypeDescriptorProvider.cs
- XmlSchemaSubstitutionGroup.cs
- WebControlAdapter.cs
- PersonalizationDictionary.cs
- SqlBinder.cs
- CodeLabeledStatement.cs
- DataException.cs
- LinkLabelLinkClickedEvent.cs
- HttpCapabilitiesEvaluator.cs
- UriTemplateHelpers.cs
- Shape.cs
- EntitySetRetriever.cs
- EventProvider.cs
- XmlIterators.cs
- BindValidator.cs
- SafeTimerHandle.cs
- Renderer.cs
- BinaryFormatterWriter.cs
- SchemaManager.cs
- Attributes.cs
- PreviewKeyDownEventArgs.cs
- TextSelection.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Keyboard.cs
- PageHandlerFactory.cs
- Transform3DCollection.cs
- DataSysAttribute.cs
- BamlBinaryReader.cs
- TextEffectCollection.cs
- SrgsSemanticInterpretationTag.cs
- Condition.cs
- AdornedElementPlaceholder.cs
- XmlSchemaObject.cs