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
- CurrentChangingEventManager.cs
- XmlArrayItemAttribute.cs
- IndexerReference.cs
- TextTabProperties.cs
- SqlAggregateChecker.cs
- ChannelParameterCollection.cs
- ContextQuery.cs
- HtmlButton.cs
- OLEDB_Util.cs
- GeometryModel3D.cs
- ImageDrawing.cs
- KeyEventArgs.cs
- FlowLayoutSettings.cs
- SoapFormatExtensions.cs
- ContextMarshalException.cs
- XamlSerializerUtil.cs
- TextureBrush.cs
- DependencyPropertyAttribute.cs
- Bitmap.cs
- ToggleButton.cs
- DataGridViewColumnCollection.cs
- ColumnHeaderConverter.cs
- DbUpdateCommandTree.cs
- StringCollectionMarkupSerializer.cs
- UnsafeNativeMethods.cs
- SHA384CryptoServiceProvider.cs
- OdbcCommandBuilder.cs
- FilterElement.cs
- HierarchicalDataTemplate.cs
- DockingAttribute.cs
- DesignerAutoFormat.cs
- ImageCodecInfoPrivate.cs
- DocumentApplicationJournalEntry.cs
- QualifiedCellIdBoolean.cs
- Math.cs
- ResizeGrip.cs
- OleDbPropertySetGuid.cs
- SerializationBinder.cs
- ParseNumbers.cs
- StylusEditingBehavior.cs
- SymbolResolver.cs
- Identifier.cs
- XmlRawWriterWrapper.cs
- CompilationLock.cs
- ThemeInfoAttribute.cs
- LocationUpdates.cs
- XmlWriterSettings.cs
- AttributeEmitter.cs
- Parser.cs
- SynchronizedInputHelper.cs
- FileInfo.cs
- NameValuePermission.cs
- XmlQualifiedName.cs
- SystemDiagnosticsSection.cs
- UIPropertyMetadata.cs
- ImageListStreamer.cs
- TrackingMemoryStream.cs
- TableLayoutStyle.cs
- SearchExpression.cs
- SoapHelper.cs
- XmlSchemaRedefine.cs
- TlsnegoTokenProvider.cs
- PenLineCapValidation.cs
- LayoutManager.cs
- ToolStripHighContrastRenderer.cs
- ServiceBuildProvider.cs
- ProfileGroupSettings.cs
- Tool.cs
- ApplicationProxyInternal.cs
- AnimationStorage.cs
- SQLMembershipProvider.cs
- CoTaskMemHandle.cs
- ECDiffieHellmanCng.cs
- ComplexTypeEmitter.cs
- Point.cs
- EdmType.cs
- InitializingNewItemEventArgs.cs
- BitmapEffectDrawing.cs
- CacheMemory.cs
- RootProfilePropertySettingsCollection.cs
- BitmapVisualManager.cs
- CompilationUnit.cs
- CharStorage.cs
- SimpleHandlerBuildProvider.cs
- CompressEmulationStream.cs
- AssertSection.cs
- AuthenticationService.cs
- SizeValueSerializer.cs
- ConfigurationManagerInternalFactory.cs
- SendParametersContent.cs
- SrgsGrammarCompiler.cs
- WriteStateInfoBase.cs
- AssemblyBuilder.cs
- CollectionViewProxy.cs
- Configuration.cs
- Point3DValueSerializer.cs
- BamlCollectionHolder.cs
- XsltLoader.cs
- XsltFunctions.cs
- SQLBoolean.cs