Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartZoneCollection.cs / 2 / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- HGlobalSafeHandle.cs
- Validator.cs
- XmlBoundElement.cs
- RequestNavigateEventArgs.cs
- XmlQueryType.cs
- FusionWrap.cs
- ResourcePool.cs
- TagPrefixAttribute.cs
- Char.cs
- FormParameter.cs
- ZipPackage.cs
- wgx_commands.cs
- SqlMetaData.cs
- ColumnResult.cs
- CharacterMetrics.cs
- StateManagedCollection.cs
- WindowsFormsLinkLabel.cs
- InkPresenter.cs
- ObjectCloneHelper.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- UidManager.cs
- ExtendLockAsyncResult.cs
- Pointer.cs
- RegexGroupCollection.cs
- InheritanceContextHelper.cs
- Label.cs
- Viewport3DAutomationPeer.cs
- InvalidOleVariantTypeException.cs
- XmlIncludeAttribute.cs
- Win32.cs
- HotCommands.cs
- MembershipSection.cs
- NGCPageContentCollectionSerializerAsync.cs
- HtmlInputCheckBox.cs
- AccessDataSource.cs
- CodeCommentStatement.cs
- DATA_BLOB.cs
- ProcessHostServerConfig.cs
- UnsafePeerToPeerMethods.cs
- GridViewEditEventArgs.cs
- IsolatedStorageFileStream.cs
- DeviceSpecificChoice.cs
- RequestCacheValidator.cs
- BaseDataBoundControl.cs
- EdmItemCollection.cs
- CapabilitiesUse.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ValueConversionAttribute.cs
- MaterializeFromAtom.cs
- StylusButtonEventArgs.cs
- StyleBamlRecordReader.cs
- JsonDeserializer.cs
- EnterpriseServicesHelper.cs
- XmlSchemaException.cs
- SqlNotificationEventArgs.cs
- LocalizableResourceBuilder.cs
- ListenerAdapterBase.cs
- AxisAngleRotation3D.cs
- SupportsEventValidationAttribute.cs
- Application.cs
- QueryableFilterRepeater.cs
- RelationshipType.cs
- QueryOutputWriter.cs
- BulletedList.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HitTestDrawingContextWalker.cs
- ModuleBuilderData.cs
- CollectionConverter.cs
- MultiBinding.cs
- OdbcParameterCollection.cs
- LocalizableAttribute.cs
- HybridDictionary.cs
- XmlCharCheckingReader.cs
- CharacterBufferReference.cs
- IndentedTextWriter.cs
- FamilyMapCollection.cs
- LabelDesigner.cs
- ToolTipService.cs
- ButtonDesigner.cs
- XmlSchemaAny.cs
- BlockExpression.cs
- WebPartConnectionsDisconnectVerb.cs
- StyleHelper.cs
- ProviderSettingsCollection.cs
- DefaultSerializationProviderAttribute.cs
- XmlEnumAttribute.cs
- DataServiceQueryOfT.cs
- TargetParameterCountException.cs
- TcpClientChannel.cs
- BufferAllocator.cs
- BreakRecordTable.cs
- TextClipboardData.cs
- WindowsRebar.cs
- FixedSOMLineRanges.cs
- TerminateSequenceResponse.cs
- _DynamicWinsockMethods.cs
- TextElementEnumerator.cs
- BindingMemberInfo.cs
- TextUtf8RawTextWriter.cs
- InstanceOwner.cs