Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }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
- SafePEFileHandle.cs
- FixedDocument.cs
- SqlCommandSet.cs
- TransformationRules.cs
- AssemblyName.cs
- StrokeNodeOperations2.cs
- Interlocked.cs
- StringToken.cs
- loginstatus.cs
- ADConnectionHelper.cs
- CaseStatementSlot.cs
- Decoder.cs
- DBNull.cs
- KeyNotFoundException.cs
- RtfFormatStack.cs
- PageCodeDomTreeGenerator.cs
- MDIWindowDialog.cs
- CallTemplateAction.cs
- RadioButton.cs
- AgileSafeNativeMemoryHandle.cs
- GenericUriParser.cs
- XmlReaderSettings.cs
- SqlUdtInfo.cs
- Lasso.cs
- MergablePropertyAttribute.cs
- DrawingState.cs
- ProxyWebPartConnectionCollection.cs
- BindingNavigator.cs
- SqlLiftWhereClauses.cs
- InnerItemCollectionView.cs
- SimpleBitVector32.cs
- OletxTransactionHeader.cs
- PropertyItem.cs
- PublisherMembershipCondition.cs
- RbTree.cs
- EpmAttributeNameBuilder.cs
- ObjectSpanRewriter.cs
- Validator.cs
- CustomMenuItemCollection.cs
- DataSet.cs
- DataGridColumnFloatingHeader.cs
- RTTrackingProfile.cs
- DecimalSumAggregationOperator.cs
- PrinterUnitConvert.cs
- LabelLiteral.cs
- SafeFileMapViewHandle.cs
- SettingsPropertyNotFoundException.cs
- UpdateTracker.cs
- AdapterUtil.cs
- ArrayList.cs
- InheritanceAttribute.cs
- TextStore.cs
- AuthenticodeSignatureInformation.cs
- ConditionalAttribute.cs
- UniqueIdentifierService.cs
- LocationSectionRecord.cs
- _NegoStream.cs
- CodeObject.cs
- ThreadBehavior.cs
- _Rfc2616CacheValidators.cs
- OperationContext.cs
- COM2ComponentEditor.cs
- ProtectedConfigurationSection.cs
- SchemaContext.cs
- OdbcParameter.cs
- XPathDocumentNavigator.cs
- TagPrefixInfo.cs
- SHA384CryptoServiceProvider.cs
- UnsafeNativeMethods.cs
- OleDbFactory.cs
- CommandDevice.cs
- Floater.cs
- XPathArrayIterator.cs
- VisualBrush.cs
- ClientEventManager.cs
- ToolStripRenderer.cs
- _UriTypeConverter.cs
- FrameAutomationPeer.cs
- MeasureData.cs
- UpdateRecord.cs
- ExclusiveCanonicalizationTransform.cs
- CroppedBitmap.cs
- WSIdentityFaultException.cs
- GenericQueueSurrogate.cs
- ObjectListCommand.cs
- DoubleAnimationBase.cs
- Variant.cs
- StyleBamlTreeBuilder.cs
- EncryptedKey.cs
- CodeMemberField.cs
- CopyOfAction.cs
- WindowsScrollBarBits.cs
- ContentValidator.cs
- SplitterPanel.cs
- MultipleViewPattern.cs
- LocalBuilder.cs
- EntityTypeEmitter.cs
- EqualityComparer.cs
- HtmlInputPassword.cs
- BinaryObjectReader.cs