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
- ParameterBuilder.cs
- SystemIPGlobalStatistics.cs
- UnlockInstanceAsyncResult.cs
- Clause.cs
- SpecialNameAttribute.cs
- XmlAnyElementAttributes.cs
- SqlInternalConnection.cs
- DBParameter.cs
- CommonObjectSecurity.cs
- listitem.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DotExpr.cs
- UncommonField.cs
- ButtonColumn.cs
- DataPagerFieldCommandEventArgs.cs
- AmbientLight.cs
- ContainerVisual.cs
- SortableBindingList.cs
- Converter.cs
- FormViewUpdatedEventArgs.cs
- AddDataControlFieldDialog.cs
- SessionMode.cs
- RootDesignerSerializerAttribute.cs
- TextTreeRootTextBlock.cs
- InvalidComObjectException.cs
- ManualWorkflowSchedulerService.cs
- DictionaryCustomTypeDescriptor.cs
- ProbeDuplexCD1AsyncResult.cs
- LogArchiveSnapshot.cs
- MouseActionValueSerializer.cs
- ParameterModifier.cs
- StateChangeEvent.cs
- Tokenizer.cs
- XmlDataDocument.cs
- Deflater.cs
- MimeBasePart.cs
- TypeDependencyAttribute.cs
- BulletedListDesigner.cs
- figurelengthconverter.cs
- FrameworkElement.cs
- mda.cs
- XmlNodeChangedEventManager.cs
- EntitySet.cs
- FontWeights.cs
- WebException.cs
- HitTestParameters3D.cs
- BroadcastEventHelper.cs
- SizeConverter.cs
- SystemUnicastIPAddressInformation.cs
- PEFileReader.cs
- CmsUtils.cs
- HtmlEncodedRawTextWriter.cs
- ToolStripProgressBar.cs
- XmlAggregates.cs
- TextProperties.cs
- SpnegoTokenAuthenticator.cs
- WriteTimeStream.cs
- ShaderEffect.cs
- Timer.cs
- ResourcePermissionBaseEntry.cs
- DataListCommandEventArgs.cs
- TextBoxBase.cs
- UInt16.cs
- MimeBasePart.cs
- _TLSstream.cs
- DeadCharTextComposition.cs
- ArithmeticException.cs
- DataGridItemCollection.cs
- DoubleLinkList.cs
- MessageQuerySet.cs
- InvalidOleVariantTypeException.cs
- ProtocolReflector.cs
- DbModificationCommandTree.cs
- DataSourceXmlTextReader.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- BinaryConverter.cs
- LoadGrammarCompletedEventArgs.cs
- SineEase.cs
- ConfigurationValue.cs
- CompressStream.cs
- TcpProcessProtocolHandler.cs
- TextEditor.cs
- WindowsGraphicsCacheManager.cs
- MdImport.cs
- BmpBitmapDecoder.cs
- GridToolTip.cs
- ZipIOExtraFieldElement.cs
- OciLobLocator.cs
- ResourcesGenerator.cs
- ReferenceTypeElement.cs
- InteropAutomationProvider.cs
- ComplusTypeValidator.cs
- StreamReader.cs
- MarshalDirectiveException.cs
- AutomationProperty.cs
- MexHttpsBindingElement.cs
- OdbcDataAdapter.cs
- QilStrConcatenator.cs
- SingleSelectRootGridEntry.cs
- SecurityResources.cs