Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItemCollection.cs / 1 / RepeaterItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class RepeaterItemCollection : ICollection { private ArrayList items; ///Encapsulates the collection of ///objects within a control. /// Initializes a new instance of /// the public RepeaterItemCollection(ArrayList items) { this.items = items; } ///class with the specified items. /// /// public int Count { get { return items.Count; } } ///Gets the item count of the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value indicating whether the collection is read-only. ////// public bool IsSynchronized { get { return false; } } ///Gets a value indicating whether access to the collection is synchronized /// (thread-safe). ////// public object SyncRoot { get { return this; } } ///Gets the object that can be used to synchronize access to the collection. In /// this case, it is the collection itself. ////// public RepeaterItem this[int index] { get { return(RepeaterItem)items[index]; } } ///Gets a ///referenced by the specified ordinal index value in /// the collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies contents from the collection to a specified ///with a /// specified starting index. /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Returns an enumerator of all ///controls within the /// collection. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class RepeaterItemCollection : ICollection { private ArrayList items; ///Encapsulates the collection of ///objects within a control. /// Initializes a new instance of /// the public RepeaterItemCollection(ArrayList items) { this.items = items; } ///class with the specified items. /// /// public int Count { get { return items.Count; } } ///Gets the item count of the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value indicating whether the collection is read-only. ////// public bool IsSynchronized { get { return false; } } ///Gets a value indicating whether access to the collection is synchronized /// (thread-safe). ////// public object SyncRoot { get { return this; } } ///Gets the object that can be used to synchronize access to the collection. In /// this case, it is the collection itself. ////// public RepeaterItem this[int index] { get { return(RepeaterItem)items[index]; } } ///Gets a ///referenced by the specified ordinal index value in /// the collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies contents from the collection to a specified ///with a /// specified starting index. /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Returns an enumerator of all ///controls within the /// collection.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityKeyIdentifier.cs
- GetTokenRequest.cs
- BinaryObjectInfo.cs
- GridErrorDlg.cs
- FilterInvalidBodyAccessException.cs
- Internal.cs
- TraceXPathNavigator.cs
- TransformDescriptor.cs
- ChangePasswordDesigner.cs
- PropertyGridEditorPart.cs
- MapPathBasedVirtualPathProvider.cs
- TypeForwardedToAttribute.cs
- Connector.cs
- TextWriter.cs
- StructuredType.cs
- _FtpDataStream.cs
- SqlOuterApplyReducer.cs
- TextCompositionManager.cs
- GetPageNumberCompletedEventArgs.cs
- XomlCompilerError.cs
- BufferedWebEventProvider.cs
- HttpCachePolicy.cs
- CriticalHandle.cs
- KerberosTokenFactoryCredential.cs
- PartitionResolver.cs
- InputMethod.cs
- TypeContext.cs
- MetaColumn.cs
- StatusBarDrawItemEvent.cs
- LogicalExpressionEditor.cs
- JavaScriptString.cs
- TaiwanCalendar.cs
- InternalMappingException.cs
- SqlDataSourceCache.cs
- InvalidPropValue.cs
- DefaultExpression.cs
- Rotation3D.cs
- ListMarkerSourceInfo.cs
- SectionInput.cs
- AttributeCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XdrBuilder.cs
- ExternalCalls.cs
- HttpListenerException.cs
- NativeBuffer.cs
- XhtmlBasicTextViewAdapter.cs
- KeySpline.cs
- DropSource.cs
- SqlUdtInfo.cs
- ClientRuntimeConfig.cs
- MemoryPressure.cs
- GridToolTip.cs
- ValidationHelper.cs
- Underline.cs
- ItemMap.cs
- AssemblyUtil.cs
- WebContext.cs
- ArithmeticException.cs
- ObjectStateEntryDbDataRecord.cs
- CheckBox.cs
- NavigationProperty.cs
- QilLoop.cs
- XmlMemberMapping.cs
- MessageAction.cs
- PasswordTextContainer.cs
- AutoScrollExpandMessageFilter.cs
- SoapDocumentMethodAttribute.cs
- DesignerSerializationManager.cs
- Crc32Helper.cs
- TextChange.cs
- DropTarget.cs
- SiteMapNode.cs
- Rect.cs
- AttributeQuery.cs
- PanelStyle.cs
- DateTime.cs
- EntryPointNotFoundException.cs
- ToolStripDropTargetManager.cs
- PolicyDesigner.cs
- WebPartMenuStyle.cs
- PageRanges.cs
- DataGridBoundColumn.cs
- Point3DCollection.cs
- DataBindingHandlerAttribute.cs
- WindowsIdentity.cs
- SiteMapPathDesigner.cs
- CssClassPropertyAttribute.cs
- ISFTagAndGuidCache.cs
- PackageProperties.cs
- RegionInfo.cs
- HeaderUtility.cs
- PageContentAsyncResult.cs
- GreenMethods.cs
- PrimaryKeyTypeConverter.cs
- WeakReferenceKey.cs
- Rect3D.cs
- FontNamesConverter.cs
- GeometryHitTestParameters.cs
- ColumnWidthChangedEvent.cs
- IncrementalReadDecoders.cs