Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }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
- UnsafeNativeMethods.cs
- ForwardPositionQuery.cs
- WebPartExportVerb.cs
- WindowsListViewGroupSubsetLink.cs
- TextEffectResolver.cs
- DynamicDataRouteHandler.cs
- TypeSemantics.cs
- Light.cs
- Quaternion.cs
- PtsCache.cs
- Thumb.cs
- WinEventHandler.cs
- XmlSchemaRedefine.cs
- ToolBar.cs
- TextSimpleMarkerProperties.cs
- ResXBuildProvider.cs
- DateTimeEditor.cs
- ObjectViewFactory.cs
- AspNetHostingPermission.cs
- AuthenticationManager.cs
- DataContractSerializer.cs
- MergeFailedEvent.cs
- RelOps.cs
- DependencyPropertyDescriptor.cs
- CheckableControlBaseAdapter.cs
- basevalidator.cs
- ValidationErrorEventArgs.cs
- GridView.cs
- MailWebEventProvider.cs
- XmlComment.cs
- PseudoWebRequest.cs
- XmlReflectionImporter.cs
- Axis.cs
- ELinqQueryState.cs
- TabControl.cs
- Compiler.cs
- SuppressMessageAttribute.cs
- MenuItem.cs
- CloseCryptoHandleRequest.cs
- VarInfo.cs
- WebBrowserHelper.cs
- ExpressionVisitor.cs
- WmlLinkAdapter.cs
- GlobalizationSection.cs
- OperatingSystemVersionCheck.cs
- DataServiceQueryProvider.cs
- OperationPickerDialog.cs
- ServiceHostingEnvironment.cs
- Vector3DCollection.cs
- MemberDomainMap.cs
- OverflowException.cs
- IList.cs
- SchemaNotation.cs
- CodeTypeConstructor.cs
- PagerSettings.cs
- FastEncoderStatics.cs
- StructureChangedEventArgs.cs
- SlotInfo.cs
- SmiRequestExecutor.cs
- ObjectStateFormatter.cs
- ReflectTypeDescriptionProvider.cs
- Size3D.cs
- BindingExpressionBase.cs
- StringPropertyBuilder.cs
- ParameterToken.cs
- GlobalizationSection.cs
- OrCondition.cs
- HMACRIPEMD160.cs
- LinkedDataMemberFieldEditor.cs
- AuthorizationRule.cs
- Part.cs
- ListSortDescriptionCollection.cs
- NavigationProperty.cs
- loginstatus.cs
- ipaddressinformationcollection.cs
- ByteKeyFrameCollection.cs
- DeflateStreamAsyncResult.cs
- ParserStreamGeometryContext.cs
- RequestCachingSection.cs
- GridSplitterAutomationPeer.cs
- XPathDocumentNavigator.cs
- ExtensionFile.cs
- _PooledStream.cs
- Pen.cs
- Inline.cs
- DoubleAnimationUsingKeyFrames.cs
- RoutedPropertyChangedEventArgs.cs
- AppDomain.cs
- XmlObjectSerializerReadContextComplex.cs
- PageThemeBuildProvider.cs
- DateTime.cs
- FormatConvertedBitmap.cs
- WindowsScroll.cs
- HashSetEqualityComparer.cs
- cookie.cs
- COM2ColorConverter.cs
- ApplicationServicesHostFactory.cs
- AnimationTimeline.cs
- RsaSecurityToken.cs
- SqlCacheDependencyDatabaseCollection.cs