Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VerificationAttribute.cs
- WebPartEditorOkVerb.cs
- MsmqIntegrationMessagePool.cs
- PropertyPushdownHelper.cs
- _TransmitFileOverlappedAsyncResult.cs
- ConnectionConsumerAttribute.cs
- CustomErrorsSection.cs
- FileDialog.cs
- TextEditorContextMenu.cs
- DesignerAutoFormat.cs
- Point3DCollectionValueSerializer.cs
- HtmlToClrEventProxy.cs
- TableLayoutPanel.cs
- RecommendedAsConfigurableAttribute.cs
- CellIdBoolean.cs
- AnnotationResource.cs
- PointCollection.cs
- CompilationRelaxations.cs
- LongTypeConverter.cs
- Table.cs
- FileDialog_Vista_Interop.cs
- PowerModeChangedEventArgs.cs
- OrderedEnumerableRowCollection.cs
- UserInitiatedNavigationPermission.cs
- CodeEventReferenceExpression.cs
- FirstMatchCodeGroup.cs
- SocketElement.cs
- AutomationPatternInfo.cs
- XmlQueryTypeFactory.cs
- DataServiceException.cs
- FocusTracker.cs
- FilterElement.cs
- XmlSchemaAnyAttribute.cs
- SecurityRuntime.cs
- DbCommandDefinition.cs
- CategoryGridEntry.cs
- CodeDOMUtility.cs
- cache.cs
- CodeConstructor.cs
- DictionarySurrogate.cs
- ComboBox.cs
- ObjectListCommandsPage.cs
- UriExt.cs
- Delegate.cs
- BinaryObjectWriter.cs
- SystemFonts.cs
- MailAddress.cs
- EncoderReplacementFallback.cs
- CustomErrorsSection.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ProfileServiceManager.cs
- DiagnosticsConfiguration.cs
- EmptyCollection.cs
- BaseCodeDomTreeGenerator.cs
- ProbeMatchesApril2005.cs
- UnsafeNativeMethods.cs
- ApplicationInfo.cs
- PhoneCall.cs
- DefaultBinder.cs
- AllMembershipCondition.cs
- SizeConverter.cs
- DataError.cs
- VoiceSynthesis.cs
- EntityDataSourceView.cs
- OrderByQueryOptionExpression.cs
- DataMemberConverter.cs
- Size3D.cs
- SqlGenerator.cs
- ClickablePoint.cs
- DrawingImage.cs
- MobileTextWriter.cs
- HostingEnvironmentException.cs
- DataSourceView.cs
- ErrorHandler.cs
- Rotation3DKeyFrameCollection.cs
- SimpleApplicationHost.cs
- SqlCachedBuffer.cs
- VectorValueSerializer.cs
- XmlUtf8RawTextWriter.cs
- WebScriptEndpoint.cs
- DateTimeUtil.cs
- TypeSchema.cs
- QilExpression.cs
- ListViewTableRow.cs
- TransactionsSectionGroup.cs
- SoapIncludeAttribute.cs
- OletxEnlistment.cs
- OverrideMode.cs
- App.cs
- hresults.cs
- IResourceProvider.cs
- BackgroundWorker.cs
- VoiceSynthesis.cs
- EditingCommands.cs
- SqlNode.cs
- DataFormats.cs
- ResolvedKeyFrameEntry.cs
- VirtualDirectoryMappingCollection.cs
- QilLoop.cs
- Table.cs