Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlWorkflowInstanceStoreLock.cs
- SpecularMaterial.cs
- DoubleKeyFrameCollection.cs
- FilterFactory.cs
- InvalidDataContractException.cs
- SiteMapHierarchicalDataSourceView.cs
- ConstraintConverter.cs
- PictureBox.cs
- OleDbStruct.cs
- HttpProfileBase.cs
- Monitor.cs
- EventLogger.cs
- CompositeFontParser.cs
- TreeIterators.cs
- NamespaceDisplayAutomationPeer.cs
- Compiler.cs
- EntityProviderServices.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- NavigatorInput.cs
- CustomErrorsSectionWrapper.cs
- SiteMapDataSource.cs
- FamilyTypefaceCollection.cs
- linebase.cs
- CalendarTable.cs
- SettingsPropertyCollection.cs
- BufferBuilder.cs
- RepeatButtonAutomationPeer.cs
- XmlSerializerVersionAttribute.cs
- LayoutEditorPart.cs
- securitymgrsite.cs
- ExpressionBindingCollection.cs
- SizeAnimationClockResource.cs
- CodeSnippetCompileUnit.cs
- Expander.cs
- ServiceContractListItem.cs
- diagnosticsswitches.cs
- GenericWebPart.cs
- ISAPIRuntime.cs
- ListQueryResults.cs
- SafeRightsManagementQueryHandle.cs
- TraceFilter.cs
- CustomBindingCollectionElement.cs
- DesignerSerializationOptionsAttribute.cs
- OutputCacheSettings.cs
- TransactionScope.cs
- ReadOnlyCollectionBase.cs
- HttpServerVarsCollection.cs
- QueryCursorEventArgs.cs
- TextParagraphCache.cs
- JoinCqlBlock.cs
- Typography.cs
- ConnectionPoint.cs
- StrongNameSignatureInformation.cs
- SmtpDigestAuthenticationModule.cs
- WeakReferenceKey.cs
- ListBase.cs
- ParameterCollection.cs
- DbParameterCollectionHelper.cs
- TreeWalker.cs
- TriggerCollection.cs
- ComponentRenameEvent.cs
- Symbol.cs
- TreeNodeCollection.cs
- FragmentNavigationEventArgs.cs
- TransformerConfigurationWizardBase.cs
- RootContext.cs
- LinqDataSourceHelper.cs
- PersonalizablePropertyEntry.cs
- _CookieModule.cs
- DifferencingCollection.cs
- LocalizedNameDescriptionPair.cs
- SettingsPropertyValue.cs
- ProfilePropertySettings.cs
- TrustLevel.cs
- DiscoveryDocumentSearchPattern.cs
- TypeInitializationException.cs
- BasicHttpBinding.cs
- InlineCollection.cs
- ToolZone.cs
- ListItemConverter.cs
- CodeBlockBuilder.cs
- CharacterShapingProperties.cs
- TemplateLookupAction.cs
- FormClosingEvent.cs
- ClientSettings.cs
- DiscoveryReferences.cs
- DataBindingHandlerAttribute.cs
- GlobalDataBindingHandler.cs
- ApplySecurityAndSendAsyncResult.cs
- KeyGestureValueSerializer.cs
- ReversePositionQuery.cs
- BlurBitmapEffect.cs
- ToolStripHighContrastRenderer.cs
- Metafile.cs
- MappableObjectManager.cs
- DataTemplate.cs
- TypeElementCollection.cs
- XmlDocumentViewSchema.cs
- DataGridPageChangedEventArgs.cs
- PageParser.cs