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
- DataControlImageButton.cs
- DirectionalLight.cs
- HtmlButton.cs
- SystemIPInterfaceProperties.cs
- ThemeDictionaryExtension.cs
- NavigationPropertyEmitter.cs
- FileVersionInfo.cs
- XmlAnyElementAttribute.cs
- ManipulationInertiaStartingEventArgs.cs
- TypeReference.cs
- TrackingWorkflowEventArgs.cs
- TypeUtils.cs
- SvcMapFileSerializer.cs
- PropagatorResult.cs
- ScrollPattern.cs
- GrammarBuilderWildcard.cs
- Transform3D.cs
- SerializationEventsCache.cs
- MbpInfo.cs
- RelationshipNavigation.cs
- ImageButton.cs
- _NegoStream.cs
- XmlStreamedByteStreamReader.cs
- mongolianshape.cs
- DataControlPagerLinkButton.cs
- SingleKeyFrameCollection.cs
- RijndaelManaged.cs
- SimpleWorkerRequest.cs
- DetailsViewPagerRow.cs
- Page.cs
- Control.cs
- ForEachAction.cs
- Input.cs
- AdapterSwitches.cs
- MSAAWinEventWrap.cs
- OptimisticConcurrencyException.cs
- TextParagraphView.cs
- SolidBrush.cs
- SrgsText.cs
- XmlSerializableServices.cs
- EffectiveValueEntry.cs
- UnsafeNativeMethods.cs
- RandomNumberGenerator.cs
- XmlRawWriter.cs
- CultureTableRecord.cs
- OperationValidationEventArgs.cs
- Semaphore.cs
- ParentQuery.cs
- BufferModesCollection.cs
- LineServicesRun.cs
- SqlUdtInfo.cs
- ItemsControl.cs
- XPathDocumentNavigator.cs
- DownloadProgressEventArgs.cs
- ZipArchive.cs
- tooltip.cs
- SettingsPropertyValueCollection.cs
- ContentPresenter.cs
- EntityDescriptor.cs
- OLEDB_Enum.cs
- NativeMethods.cs
- SqlComparer.cs
- SqlServer2KCompatibilityAnnotation.cs
- TrackingMemoryStream.cs
- ListBoxItemAutomationPeer.cs
- FixedDocumentPaginator.cs
- StructuredType.cs
- Keywords.cs
- OleDbConnection.cs
- DesignOnlyAttribute.cs
- SqlProcedureAttribute.cs
- BitmapFrameDecode.cs
- ISAPIWorkerRequest.cs
- GeneralTransform.cs
- SiteOfOriginContainer.cs
- StyleCollection.cs
- ResXResourceWriter.cs
- DataRelationPropertyDescriptor.cs
- PersistenceContextEnlistment.cs
- DocumentCollection.cs
- ElementsClipboardData.cs
- NativeBuffer.cs
- EntityUtil.cs
- XmlNullResolver.cs
- DesignerActionItem.cs
- SingleStorage.cs
- KeyPullup.cs
- DefaultBinder.cs
- ModuleBuilderData.cs
- MetabaseReader.cs
- LocalizableResourceBuilder.cs
- TableItemStyle.cs
- OutputCacheProfile.cs
- ListItemConverter.cs
- Rules.cs
- jithelpers.cs
- TraceRecords.cs
- CancellableEnumerable.cs
- SqlVisitor.cs
- SourceSwitch.cs