Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CollectionChangedEventManager.cs
- EditorPart.cs
- VectorValueSerializer.cs
- SpecialNameAttribute.cs
- HttpConfigurationSystem.cs
- AddInProcess.cs
- SelectionItemProviderWrapper.cs
- Focus.cs
- HostingEnvironmentException.cs
- TreeBuilder.cs
- JournalEntry.cs
- StrokeNodeOperations2.cs
- Configuration.cs
- WebPartMovingEventArgs.cs
- Form.cs
- DataGridViewCellCollection.cs
- SqlCommand.cs
- RTLAwareMessageBox.cs
- BuildResult.cs
- DoubleLinkListEnumerator.cs
- QilStrConcatenator.cs
- wmiprovider.cs
- DataError.cs
- SoapObjectInfo.cs
- Base64Decoder.cs
- HostedHttpTransportManager.cs
- CatalogPartChrome.cs
- ScriptBehaviorDescriptor.cs
- EnumerationRangeValidationUtil.cs
- SHA512.cs
- XPathException.cs
- CompositeActivityDesigner.cs
- DataGridView.cs
- QueryAccessibilityHelpEvent.cs
- XmlSchemaAttributeGroup.cs
- ReadOnlyTernaryTree.cs
- BitmapFrameDecode.cs
- ReadOnlyActivityGlyph.cs
- CodeDOMUtility.cs
- SmtpFailedRecipientsException.cs
- SingleStorage.cs
- TrackingMemoryStream.cs
- ProcessHostServerConfig.cs
- ConfigurationSchemaErrors.cs
- ProtocolException.cs
- CodeEntryPointMethod.cs
- CharAnimationBase.cs
- ColumnWidthChangingEvent.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- _NtlmClient.cs
- DataRelation.cs
- SpanIndex.cs
- DecimalStorage.cs
- RulePatternOps.cs
- DataSourceExpression.cs
- UnaryExpression.cs
- StringCollection.cs
- ReadOnlyDictionary.cs
- NameValuePermission.cs
- XsltArgumentList.cs
- CharacterHit.cs
- LogStream.cs
- FastEncoder.cs
- XmlDownloadManager.cs
- GPPOINTF.cs
- CommandHelper.cs
- EllipticalNodeOperations.cs
- MetadataSerializer.cs
- PenContext.cs
- EntitySetDataBindingList.cs
- DocComment.cs
- Vector3DAnimationBase.cs
- DeferredReference.cs
- AxHost.cs
- XmlSerializableReader.cs
- SmtpException.cs
- initElementDictionary.cs
- TableChangeProcessor.cs
- ScrollViewerAutomationPeer.cs
- TreeBuilderBamlTranslator.cs
- PointAnimationUsingPath.cs
- MasterPage.cs
- ImageDrawing.cs
- Baml2006Reader.cs
- OleDbSchemaGuid.cs
- DisplayNameAttribute.cs
- ServicesUtilities.cs
- IndexerReference.cs
- ConnectionStringsExpressionBuilder.cs
- AffineTransform3D.cs
- VariableAction.cs
- PeerChannelFactory.cs
- MetadataPropertyCollection.cs
- RepeatButton.cs
- XmlAttribute.cs
- PromptBuilder.cs
- RijndaelManagedTransform.cs
- CultureMapper.cs
- SafeRsaProviderHandle.cs
- SortDescription.cs