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
- ThreadStartException.cs
- WindowsStatusBar.cs
- ServicePointManagerElement.cs
- ObjectAnimationBase.cs
- SHA256.cs
- TextCollapsingProperties.cs
- SubMenuStyleCollection.cs
- GeneralTransform.cs
- BinaryObjectWriter.cs
- RulePatternOps.cs
- Typeface.cs
- ChildrenQuery.cs
- XmlSecureResolver.cs
- _AutoWebProxyScriptWrapper.cs
- HMACSHA1.cs
- AppDomainShutdownMonitor.cs
- FormattedTextSymbols.cs
- UserNameSecurityToken.cs
- FrameworkTextComposition.cs
- DesignerOptionService.cs
- COM2PictureConverter.cs
- KoreanLunisolarCalendar.cs
- X509ChainElement.cs
- UrlMapping.cs
- MailAddress.cs
- DbConnectionPoolGroup.cs
- RC2.cs
- SrgsRulesCollection.cs
- ObjectResult.cs
- Model3D.cs
- UriSection.cs
- QuaternionAnimation.cs
- VisualProxy.cs
- MtomMessageEncoder.cs
- PrivilegeNotHeldException.cs
- MonitorWrapper.cs
- DatePicker.cs
- GraphicsPath.cs
- _SpnDictionary.cs
- AliasGenerator.cs
- MetadataItem_Static.cs
- KeyToListMap.cs
- ResXDataNode.cs
- CompoundFileStreamReference.cs
- ToolboxItemFilterAttribute.cs
- TypeSource.cs
- ParallelLoopState.cs
- SharedPerformanceCounter.cs
- ImageSource.cs
- HashRepartitionEnumerator.cs
- XmlMembersMapping.cs
- StyleBamlTreeBuilder.cs
- DataGridCellEditEndingEventArgs.cs
- SymmetricKey.cs
- ValueConversionAttribute.cs
- CreateUserErrorEventArgs.cs
- DisableDpiAwarenessAttribute.cs
- ISCIIEncoding.cs
- Registry.cs
- Certificate.cs
- SqlBulkCopyColumnMapping.cs
- SQLCharsStorage.cs
- ProcessModule.cs
- FixedBufferAttribute.cs
- ModelFunction.cs
- GetLedgerRequest.cs
- DoubleAnimationBase.cs
- InstanceData.cs
- TextFormatter.cs
- StorageEndPropertyMapping.cs
- Accessible.cs
- DbParameterCollection.cs
- WorkflowApplicationTerminatedException.cs
- Utilities.cs
- WebPartTransformerCollection.cs
- ByteStorage.cs
- ExpressionStringBuilder.cs
- MouseBinding.cs
- input.cs
- DataMisalignedException.cs
- CompressionTransform.cs
- ListManagerBindingsCollection.cs
- XamlStackWriter.cs
- DayRenderEvent.cs
- WindowsComboBox.cs
- ReceiveCompletedEventArgs.cs
- ResponseStream.cs
- IsolatedStorageFile.cs
- SessionParameter.cs
- ThicknessAnimationUsingKeyFrames.cs
- WebPartDescription.cs
- ScriptModule.cs
- AdornerDecorator.cs
- RawMouseInputReport.cs
- KeyedCollection.cs
- Iis7Helper.cs
- ReachPageContentSerializerAsync.cs
- InkCanvasSelection.cs
- Polygon.cs
- METAHEADER.cs