Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- _CacheStreams.cs
- SmtpDigestAuthenticationModule.cs
- ServiceDesigner.cs
- SafeRightsManagementPubHandle.cs
- SqlNodeAnnotations.cs
- FixedSOMLineRanges.cs
- ScriptingAuthenticationServiceSection.cs
- ListSortDescriptionCollection.cs
- XmlWriter.cs
- InstanceDataCollectionCollection.cs
- TextMetrics.cs
- AssertFilter.cs
- Light.cs
- FacetDescriptionElement.cs
- MediaTimeline.cs
- Perspective.cs
- DetailsViewRowCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- PreDigestedSignedInfo.cs
- DiffuseMaterial.cs
- ResXResourceReader.cs
- CodeVariableDeclarationStatement.cs
- WebEvents.cs
- EntityKey.cs
- Header.cs
- XmlSchemaAttributeGroupRef.cs
- WhitespaceReader.cs
- ElapsedEventArgs.cs
- LocalizationParserHooks.cs
- ConfigurationSectionGroup.cs
- OutputCacheProfileCollection.cs
- SchemaElementLookUpTable.cs
- WebControlToolBoxItem.cs
- MiniMapControl.xaml.cs
- Route.cs
- ExtendedPropertyDescriptor.cs
- EdmProperty.cs
- TreeViewAutomationPeer.cs
- ApplicationGesture.cs
- COAUTHINFO.cs
- odbcmetadatacolumnnames.cs
- EncodingDataItem.cs
- BlobPersonalizationState.cs
- GetCryptoTransformRequest.cs
- CodeGenerator.cs
- CommonObjectSecurity.cs
- Control.cs
- BoundColumn.cs
- ListViewInsertionMark.cs
- ControlBuilder.cs
- ExtensionQuery.cs
- Boolean.cs
- ExpressionBuilder.cs
- ConfigurationLocationCollection.cs
- WorkflowTransactionOptions.cs
- PropertyConverter.cs
- ErrorLog.cs
- DataGridViewTextBoxCell.cs
- EventSinkHelperWriter.cs
- AxisAngleRotation3D.cs
- ResourceDictionary.cs
- ModifierKeysConverter.cs
- XsltSettings.cs
- XmlCharCheckingReader.cs
- TraceHandlerErrorFormatter.cs
- CollectionChangeEventArgs.cs
- TdsParserStateObject.cs
- ExpressionDumper.cs
- InvalidOleVariantTypeException.cs
- mediapermission.cs
- SynchronizationContext.cs
- X509Chain.cs
- SessionPageStateSection.cs
- CacheModeConverter.cs
- QualifiedCellIdBoolean.cs
- WebPartConnectionsCancelVerb.cs
- XmlSchemaSimpleContentExtension.cs
- HttpStaticObjectsCollectionBase.cs
- TypeSystem.cs
- GraphicsContainer.cs
- LassoSelectionBehavior.cs
- SubpageParaClient.cs
- TextBoxBase.cs
- MsmqInputChannelListener.cs
- StructuredTypeInfo.cs
- ThicknessAnimation.cs
- ToolStripLocationCancelEventArgs.cs
- PropertyChangeTracker.cs
- XmlCharCheckingReader.cs
- DataServiceKeyAttribute.cs
- followingquery.cs
- SubMenuStyle.cs
- SelectedGridItemChangedEvent.cs
- InternalConfigHost.cs
- HtmlInputCheckBox.cs
- FixedFindEngine.cs
- ByteStorage.cs
- TrustManager.cs
- MultiBinding.cs
- DataGridViewIntLinkedList.cs