Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- InvalidWMPVersionException.cs
- PathFigure.cs
- DragStartedEventArgs.cs
- OdbcRowUpdatingEvent.cs
- DocumentSchemaValidator.cs
- _CookieModule.cs
- serverconfig.cs
- DesignerDataStoredProcedure.cs
- OdbcConnectionFactory.cs
- HtmlInputControl.cs
- EditorOptionAttribute.cs
- EditorPartDesigner.cs
- PropertyNames.cs
- RequestTimeoutManager.cs
- AssociationTypeEmitter.cs
- SqlCacheDependencySection.cs
- Unit.cs
- EllipseGeometry.cs
- StylusPointPropertyId.cs
- securestring.cs
- ThrowHelper.cs
- FixUpCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- Style.cs
- SurrogateDataContract.cs
- Accessors.cs
- DataGridViewColumnHeaderCell.cs
- Wizard.cs
- JulianCalendar.cs
- HatchBrush.cs
- QueryPrefixOp.cs
- NativeMethods.cs
- KnownColorTable.cs
- TextTreeTextNode.cs
- PrePostDescendentsWalker.cs
- ISAPIWorkerRequest.cs
- SqlAliaser.cs
- MailBnfHelper.cs
- X509Certificate2Collection.cs
- FacetChecker.cs
- UserControlBuildProvider.cs
- MetadataUtil.cs
- RegexWriter.cs
- OleDbRowUpdatingEvent.cs
- MetaModel.cs
- SpeechSynthesizer.cs
- GreenMethods.cs
- DataControlFieldHeaderCell.cs
- TabControlAutomationPeer.cs
- ImageDrawing.cs
- _OSSOCK.cs
- TransportListener.cs
- GridViewPageEventArgs.cs
- ReadOnlyObservableCollection.cs
- CodePrimitiveExpression.cs
- EmptyArray.cs
- WorkflowOwnerAsyncResult.cs
- SerializerDescriptor.cs
- SubpageParaClient.cs
- _emptywebproxy.cs
- SvcMapFileSerializer.cs
- SessionState.cs
- ToolboxControl.cs
- RowParagraph.cs
- _ShellExpression.cs
- HwndMouseInputProvider.cs
- TextStore.cs
- DataGridViewRowCancelEventArgs.cs
- MediaPlayer.cs
- NameScopePropertyAttribute.cs
- HttpRuntimeSection.cs
- DataServiceRequest.cs
- CTreeGenerator.cs
- AdornerLayer.cs
- Mapping.cs
- EventSinkHelperWriter.cs
- DynamicArgumentDesigner.xaml.cs
- FactoryGenerator.cs
- AssemblyFilter.cs
- DataGridViewUtilities.cs
- _MultipleConnectAsync.cs
- ConnectionStringsExpressionBuilder.cs
- ReflectionUtil.cs
- PenThreadPool.cs
- XmlSchemaObjectTable.cs
- PersistenceTypeAttribute.cs
- _FtpControlStream.cs
- MediaTimeline.cs
- DataGridViewCellEventArgs.cs
- ScriptResourceAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- RotateTransform3D.cs
- ValidationManager.cs
- TextMetrics.cs
- PolygonHotSpot.cs
- GridViewUpdatedEventArgs.cs
- DesignerContextDescriptor.cs
- HttpSysSettings.cs
- SimpleWorkerRequest.cs
- VectorValueSerializer.cs