Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartZoneCollection.cs / 1 / WebPartZoneCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.Globalization; using System.Security.Permissions; ////// Read-only collection of WebPartZones. Collection cannot be modified after contstruction. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.Globalization; using System.Security.Permissions; ////// Read-only collection of WebPartZones. Collection cannot be modified after contstruction. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
- BitmapMetadata.cs
- AssociationType.cs
- SqlAggregateChecker.cs
- TraceContextEventArgs.cs
- DynamicValidatorEventArgs.cs
- CompatibleComparer.cs
- SafeCryptoHandles.cs
- NavigationService.cs
- SafeRegistryHandle.cs
- TextViewBase.cs
- TypedTableBase.cs
- CanonicalXml.cs
- SqlVersion.cs
- Renderer.cs
- FixedSOMPageElement.cs
- Queue.cs
- PriorityBindingExpression.cs
- XmlILConstructAnalyzer.cs
- BuildTopDownAttribute.cs
- MenuItemBindingCollection.cs
- ByteStreamGeometryContext.cs
- ImageAutomationPeer.cs
- ImageCollectionEditor.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- XhtmlBasicPanelAdapter.cs
- CellQuery.cs
- FilterQueryOptionExpression.cs
- ViewEvent.cs
- RemoveStoryboard.cs
- WebPartConnectionsEventArgs.cs
- ObjectContextServiceProvider.cs
- Utils.cs
- infer.cs
- ForwardPositionQuery.cs
- MenuItem.cs
- RelationshipFixer.cs
- MenuCommandsChangedEventArgs.cs
- SimpleFieldTemplateFactory.cs
- FragmentQuery.cs
- MaterializeFromAtom.cs
- XmlArrayAttribute.cs
- ComboBox.cs
- SiteMapSection.cs
- WsatServiceAddress.cs
- CompilerParameters.cs
- configsystem.cs
- MetabaseSettingsIis7.cs
- CommandLineParser.cs
- GraphicsPathIterator.cs
- SystemColors.cs
- RecognizedWordUnit.cs
- RootNamespaceAttribute.cs
- FunctionUpdateCommand.cs
- XPathEmptyIterator.cs
- TripleDESCryptoServiceProvider.cs
- TableFieldsEditor.cs
- XmlSchemaSimpleContentExtension.cs
- PreviousTrackingServiceAttribute.cs
- PresentationTraceSources.cs
- Exceptions.cs
- RtfToken.cs
- PartialCachingAttribute.cs
- JsonStringDataContract.cs
- DelegateSerializationHolder.cs
- HwndSubclass.cs
- SafePointer.cs
- WithStatement.cs
- MappingMetadataHelper.cs
- ProfileSection.cs
- HostedElements.cs
- SiteMap.cs
- TypedTableHandler.cs
- SqlCacheDependencyDatabase.cs
- ActionNotSupportedException.cs
- Msmq3PoisonHandler.cs
- Choices.cs
- Geometry.cs
- DelegateSerializationHolder.cs
- ContentWrapperAttribute.cs
- XmlBuffer.cs
- DirectoryRootQuery.cs
- Vector3DAnimationBase.cs
- TearOffProxy.cs
- DesignerGenericWebPart.cs
- StrongNameIdentityPermission.cs
- CommandEventArgs.cs
- VirtualPathUtility.cs
- ObjectDataSourceFilteringEventArgs.cs
- InputQueue.cs
- RenameRuleObjectDialog.Designer.cs
- ByteViewer.cs
- PixelFormats.cs
- TimersDescriptionAttribute.cs
- ServiceRoute.cs
- FormViewDeleteEventArgs.cs
- SystemDiagnosticsSection.cs
- UserControlAutomationPeer.cs
- SQLInt64Storage.cs
- ConstructorNeedsTagAttribute.cs
- HybridObjectCache.cs