Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- SystemNetworkInterface.cs
- DocumentPageTextView.cs
- ErrorTableItemStyle.cs
- RadialGradientBrush.cs
- ReadOnlyHierarchicalDataSourceView.cs
- QuestionEventArgs.cs
- ScheduleChanges.cs
- LinkedList.cs
- Calendar.cs
- BamlCollectionHolder.cs
- ServiceContractViewControl.cs
- StateMachineSubscriptionManager.cs
- IdentityManager.cs
- ReachDocumentPageSerializerAsync.cs
- PropertyGeneratedEventArgs.cs
- ManagementEventArgs.cs
- RecordConverter.cs
- EmissiveMaterial.cs
- X509Certificate2.cs
- TextContainer.cs
- SoapMessage.cs
- MeshGeometry3D.cs
- TextEditorSelection.cs
- RandomNumberGenerator.cs
- MULTI_QI.cs
- ObjectConverter.cs
- SQLByteStorage.cs
- CodeArgumentReferenceExpression.cs
- VisualProxy.cs
- ListItemsPage.cs
- SnapLine.cs
- ImportContext.cs
- SoapEnumAttribute.cs
- CommonRemoteMemoryBlock.cs
- ContainerAction.cs
- DuplicateMessageDetector.cs
- ColorDialog.cs
- DebugHandleTracker.cs
- NotifyCollectionChangedEventArgs.cs
- WinHttpWebProxyFinder.cs
- Storyboard.cs
- TogglePattern.cs
- BuildResult.cs
- FontInfo.cs
- Positioning.cs
- DesignerVerb.cs
- DomainConstraint.cs
- XmlIterators.cs
- SendKeys.cs
- GroupStyle.cs
- MaskDescriptors.cs
- SchemaManager.cs
- EventLogInformation.cs
- FixedPage.cs
- RefreshEventArgs.cs
- TraceSection.cs
- DataSourceControl.cs
- StringDictionary.cs
- Size3D.cs
- LeafCellTreeNode.cs
- SimpleWebHandlerParser.cs
- RawUIStateInputReport.cs
- EntityWrapper.cs
- StdRegProviderWrapper.cs
- TimeSpanMinutesConverter.cs
- ScriptModule.cs
- CaretElement.cs
- TrackBar.cs
- SegmentInfo.cs
- GPRECT.cs
- AppendHelper.cs
- StartUpEventArgs.cs
- TypeCacheManager.cs
- ProcessManager.cs
- IndexOutOfRangeException.cs
- CodeGenerator.cs
- DataListItem.cs
- WindowsListViewGroupSubsetLink.cs
- CodeNamespaceCollection.cs
- CultureNotFoundException.cs
- RawMouseInputReport.cs
- SingleAnimation.cs
- QueryComponents.cs
- WindowsSysHeader.cs
- FormViewInsertedEventArgs.cs
- WindowsPrincipal.cs
- DictionaryBase.cs
- DataIdProcessor.cs
- ResXResourceWriter.cs
- QueryCursorEventArgs.cs
- SspiHelper.cs
- DetailsViewInsertedEventArgs.cs
- MethodInfo.cs
- StreamSecurityUpgradeInitiatorBase.cs
- CompatibleIComparer.cs
- HttpStaticObjectsCollectionWrapper.cs
- InheritanceContextHelper.cs
- StorageModelBuildProvider.cs
- DescriptionAttribute.cs
- ObjectHelper.cs