Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. //------------------------------------------------------------------------------ //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.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
- CollectionConverter.cs
- BitmapEffectGroup.cs
- SqlGatherProducedAliases.cs
- ThrowHelper.cs
- XmlDocumentType.cs
- AppDomainShutdownMonitor.cs
- ScalarType.cs
- SiteMapNodeItem.cs
- Calendar.cs
- DateTimeFormatInfo.cs
- PtsCache.cs
- FileDialog_Vista.cs
- EventsTab.cs
- SqlFormatter.cs
- RectConverter.cs
- GraphicsContainer.cs
- TailPinnedEventArgs.cs
- RemotingServices.cs
- MobileSysDescriptionAttribute.cs
- XmlValueConverter.cs
- LeaseManager.cs
- DeploymentExceptionMapper.cs
- TypeViewSchema.cs
- IntegrationExceptionEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- QueryCacheManager.cs
- RectangleHotSpot.cs
- DataGridParentRows.cs
- BooleanAnimationBase.cs
- BufferModesCollection.cs
- cookieexception.cs
- TextFormatter.cs
- CultureTableRecord.cs
- ValidationResult.cs
- Merger.cs
- StylusPointDescription.cs
- ApplicationId.cs
- OdbcEnvironment.cs
- StylusPointPropertyId.cs
- ListDictionaryInternal.cs
- contentDescriptor.cs
- GatewayDefinition.cs
- SafeSecurityHelper.cs
- SystemResources.cs
- OleDbSchemaGuid.cs
- TdsRecordBufferSetter.cs
- DocumentSequence.cs
- XPathAxisIterator.cs
- PageContentAsyncResult.cs
- MobileControlsSectionHelper.cs
- AggregateNode.cs
- Geometry3D.cs
- ItemChangedEventArgs.cs
- CorrelationValidator.cs
- LinqDataSourceHelper.cs
- DependencyPropertyAttribute.cs
- HighlightVisual.cs
- RichTextBoxAutomationPeer.cs
- IntSecurity.cs
- WebReferencesBuildProvider.cs
- Matrix3D.cs
- PathFigure.cs
- HttpListenerContext.cs
- CodeDomLocalizationProvider.cs
- CompilerWrapper.cs
- SqlResolver.cs
- SafeNativeMethodsMilCoreApi.cs
- Decimal.cs
- WebConfigurationHost.cs
- DataBoundControlAdapter.cs
- SecurityChannelListener.cs
- HtmlButton.cs
- SmiContextFactory.cs
- AspCompat.cs
- HttpClientChannel.cs
- TextMessageEncodingElement.cs
- arclist.cs
- ModelPropertyImpl.cs
- XPathDocumentBuilder.cs
- FileDetails.cs
- DataGridViewImageCell.cs
- HtmlToClrEventProxy.cs
- DoubleAnimationBase.cs
- IDispatchConstantAttribute.cs
- InkPresenter.cs
- ManagementEventWatcher.cs
- TextTreeNode.cs
- TypeSource.cs
- DiscoveryServerProtocol.cs
- TypeListConverter.cs
- LocalizationParserHooks.cs
- DynamicMethod.cs
- CheckBoxPopupAdapter.cs
- PerformanceCounterPermissionAttribute.cs
- InvalidTimeZoneException.cs
- CodeSnippetStatement.cs
- WmpBitmapDecoder.cs
- InputScopeNameConverter.cs
- DocumentGrid.cs
- ImageAnimator.cs