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
- SpecularMaterial.cs
- PictureBox.cs
- CodeDomDecompiler.cs
- xmlglyphRunInfo.cs
- Rule.cs
- DataGridSortCommandEventArgs.cs
- GenericAuthenticationEventArgs.cs
- MessageQueuePermission.cs
- Selection.cs
- METAHEADER.cs
- Byte.cs
- InputMethod.cs
- SubMenuStyle.cs
- PreviewPageInfo.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataSpaceManager.cs
- DataObjectAttribute.cs
- MatrixTransform.cs
- FamilyMap.cs
- StrokeNodeOperations.cs
- UnSafeCharBuffer.cs
- AddInBase.cs
- RootBrowserWindow.cs
- DbConnectionHelper.cs
- ReadOnlyCollection.cs
- ObjectCloneHelper.cs
- Italic.cs
- PrintDialogDesigner.cs
- FontUnit.cs
- SaveFileDialog.cs
- Int32EqualityComparer.cs
- ObjectStorage.cs
- Configuration.cs
- SamlDelegatingWriter.cs
- XmlAnyAttributeAttribute.cs
- DbCommandDefinition.cs
- ReliableSessionElement.cs
- Registry.cs
- ListDictionaryInternal.cs
- CodeCommentStatementCollection.cs
- ConnectionInterfaceCollection.cs
- CodeGroup.cs
- ColorTranslator.cs
- BuildProvider.cs
- ReflectionPermission.cs
- ScrollProperties.cs
- DetailsViewUpdatedEventArgs.cs
- GenericPrincipal.cs
- CheckBoxDesigner.cs
- PropertyPath.cs
- SQLSingleStorage.cs
- DateTime.cs
- TreeNodeEventArgs.cs
- AdornerLayer.cs
- CmsInterop.cs
- DependencyProperty.cs
- X509Certificate.cs
- DataControlLinkButton.cs
- AtomContentProperty.cs
- HostAdapter.cs
- OdbcParameterCollection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- Timer.cs
- WriteTimeStream.cs
- BreakRecordTable.cs
- ImageSource.cs
- MobileUserControl.cs
- OdbcDataReader.cs
- CachedPathData.cs
- DataRelation.cs
- DataRecord.cs
- ApplicationTrust.cs
- ListMarkerSourceInfo.cs
- SByteStorage.cs
- InvalidateEvent.cs
- Claim.cs
- OleServicesContext.cs
- TableItemStyle.cs
- HttpWebRequestElement.cs
- HoistedLocals.cs
- ExpandedWrapper.cs
- WebPartConnectionsConfigureVerb.cs
- ClientRequest.cs
- SoapAttributes.cs
- Splitter.cs
- FileStream.cs
- VerificationException.cs
- InputScopeManager.cs
- XamlStream.cs
- TypeConverterAttribute.cs
- PageRequestManager.cs
- RijndaelManaged.cs
- ObjectQuery.cs
- WindowsListView.cs
- TextParentUndoUnit.cs
- SubpageParagraph.cs
- ReferencedCollectionType.cs
- Panel.cs
- DialogResultConverter.cs
- DBSqlParserTableCollection.cs