Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartZoneCollection.cs / 1305376 / WebPartZoneCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.Globalization; ////// Read-only collection of WebPartZones. Collection cannot be modified after contstruction. /// public sealed class WebPartZoneCollection : ReadOnlyCollectionBase { public WebPartZoneCollection() { } public WebPartZoneCollection(ICollection webPartZones) { if (webPartZones == null) { throw new ArgumentNullException("webPartZones"); } foreach (object obj in webPartZones) { if (obj == null) { throw new ArgumentException(SR.GetString(SR.Collection_CantAddNull), "webPartZones"); } if (!(obj is WebPartZone)) { throw new ArgumentException(SR.GetString(SR.Collection_InvalidType, "WebPartZone"), "webPartZones"); } InnerList.Add(obj); } } internal int Add(WebPartZoneBase value) { return InnerList.Add(value); } public bool Contains(WebPartZoneBase value) { return InnerList.Contains(value); } public int IndexOf(WebPartZoneBase value) { return InnerList.IndexOf(value); } public WebPartZoneBase this[int index] { get { return (WebPartZoneBase) InnerList[index]; } } public WebPartZoneBase this[string id] { get { WebPartZoneBase selectedZone = null; foreach (WebPartZoneBase zone in InnerList) { if (String.Equals(zone.ID, id, StringComparison.OrdinalIgnoreCase)) { selectedZone = zone; break; } } return selectedZone; } } ////// public void CopyTo(WebPartZoneBase[] array, int index) { InnerList.CopyTo(array, index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Copies contents from the collection to a specified array with a /// specified starting index. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutOfMemoryException.cs
- BitmapPalettes.cs
- StringArrayConverter.cs
- RelationshipSet.cs
- RuleSetCollection.cs
- InheritanceContextHelper.cs
- X509CertificateInitiatorServiceCredential.cs
- HighContrastHelper.cs
- UIElement3D.cs
- COM2EnumConverter.cs
- SecurityUtils.cs
- ImageCreator.cs
- RuntimeHandles.cs
- CacheChildrenQuery.cs
- TextBounds.cs
- OLEDB_Util.cs
- WebPartConnectionsConnectVerb.cs
- ListViewItemCollectionEditor.cs
- FloaterParaClient.cs
- NativeMethods.cs
- ConfigurationSection.cs
- DataSourceCacheDurationConverter.cs
- XmlSchemaAttributeGroup.cs
- KnownBoxes.cs
- AutomationElement.cs
- StateFinalizationDesigner.cs
- LoginDesigner.cs
- TypeInitializationException.cs
- ShadowGlyph.cs
- XmlQueryOutput.cs
- ReliableMessagingVersionConverter.cs
- Stack.cs
- EastAsianLunisolarCalendar.cs
- AsymmetricKeyExchangeDeformatter.cs
- ObjectHandle.cs
- DecimalStorage.cs
- ProvidersHelper.cs
- HttpModuleCollection.cs
- BitArray.cs
- WebPartTransformerCollection.cs
- HostProtectionPermission.cs
- SourceItem.cs
- AuthenticationException.cs
- Rfc2898DeriveBytes.cs
- Console.cs
- DataRecordInfo.cs
- ConvertTextFrag.cs
- RunInstallerAttribute.cs
- ToolStripSplitButton.cs
- MobileTemplatedControlDesigner.cs
- DateTimeFormat.cs
- ImageCodecInfo.cs
- ExceptionUtil.cs
- GeneralTransform3DTo2D.cs
- ContainerSelectorActiveEvent.cs
- ConstraintStruct.cs
- ClientSettings.cs
- IgnoreDataMemberAttribute.cs
- BaseConfigurationRecord.cs
- DataControlFieldCell.cs
- ChangeDirector.cs
- BitmapEncoder.cs
- ReadOnlyTernaryTree.cs
- IISUnsafeMethods.cs
- ComponentChangedEvent.cs
- DataChangedEventManager.cs
- DeflateStream.cs
- ItemAutomationPeer.cs
- UserCancellationException.cs
- ConfigXmlComment.cs
- RankException.cs
- UnknownBitmapEncoder.cs
- StringConcat.cs
- AnnotationResource.cs
- QueryTask.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ContentControl.cs
- XamlBuildTaskServices.cs
- OracleInfoMessageEventArgs.cs
- CounterSample.cs
- ToolStripPanel.cs
- ContentType.cs
- SqlDataSourceQuery.cs
- DataGridViewBindingCompleteEventArgs.cs
- Brush.cs
- ClientFormsAuthenticationCredentials.cs
- Transform.cs
- TrackingRecord.cs
- ResetableIterator.cs
- CreateUserErrorEventArgs.cs
- Column.cs
- LineBreak.cs
- EntityDataSourceContainerNameConverter.cs
- PropertyHelper.cs
- Vector.cs
- ValidationRule.cs
- TextEffect.cs
- MetadataSource.cs
- Nullable.cs
- SharedDp.cs