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
- PatternMatcher.cs
- _ScatterGatherBuffers.cs
- OutputCacheModule.cs
- ImageListStreamer.cs
- BigIntegerStorage.cs
- PageSettings.cs
- AccessorTable.cs
- IdentityValidationException.cs
- DecoderFallback.cs
- DataGridViewCellConverter.cs
- TextComposition.cs
- Serializer.cs
- ToolTip.cs
- XmlDomTextWriter.cs
- TextServicesContext.cs
- PasswordValidationException.cs
- TextRangeProviderWrapper.cs
- DynamicILGenerator.cs
- ManageRequest.cs
- DescendantBaseQuery.cs
- ConfigurationFileMap.cs
- StrokeIntersection.cs
- OuterGlowBitmapEffect.cs
- QueryInterceptorAttribute.cs
- ControlTemplate.cs
- DeferredSelectedIndexReference.cs
- FontEditor.cs
- DiagnosticsConfigurationHandler.cs
- ProgressChangedEventArgs.cs
- GrammarBuilderWildcard.cs
- EntityDataSourceChangingEventArgs.cs
- NetworkInformationException.cs
- MethodBuilderInstantiation.cs
- PermissionSetTriple.cs
- VideoDrawing.cs
- DbConnectionHelper.cs
- RunClient.cs
- InvokeHandlers.cs
- SQLByteStorage.cs
- ManipulationInertiaStartingEventArgs.cs
- CombinedGeometry.cs
- DrawingVisual.cs
- ObjectContextServiceProvider.cs
- ProtocolsConfigurationEntry.cs
- RealizedColumnsBlock.cs
- AttributeParameterInfo.cs
- CollectionDataContractAttribute.cs
- StringResourceManager.cs
- MdImport.cs
- Collection.cs
- DbUpdateCommandTree.cs
- DesignerView.cs
- CachedPathData.cs
- TailPinnedEventArgs.cs
- Matrix.cs
- ConstNode.cs
- OutputScopeManager.cs
- NameSpaceExtractor.cs
- PropertyMetadata.cs
- StreamGeometryContext.cs
- DrawingAttributeSerializer.cs
- SoapFormatterSinks.cs
- PreloadHost.cs
- BinHexDecoder.cs
- TextParaClient.cs
- TreeWalkHelper.cs
- PageAsyncTaskManager.cs
- XsltContext.cs
- CompositionAdorner.cs
- OneOfTypeConst.cs
- Label.cs
- ListViewItemEventArgs.cs
- ButtonChrome.cs
- HwndStylusInputProvider.cs
- TypeCodeDomSerializer.cs
- SqlDataSourceCustomCommandEditor.cs
- Overlapped.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- SchemaMapping.cs
- FixUp.cs
- coordinator.cs
- ActivityBuilderHelper.cs
- BezierSegment.cs
- ContextStaticAttribute.cs
- VisualTarget.cs
- GridViewDeleteEventArgs.cs
- RegistrationServices.cs
- WebPartCollection.cs
- SessionPageStatePersister.cs
- AsymmetricKeyExchangeFormatter.cs
- FileEnumerator.cs
- TreeBuilder.cs
- ContentPathSegment.cs
- AnimationStorage.cs
- MbpInfo.cs
- DesignerImageAdapter.cs
- ColumnMap.cs
- CodeConstructor.cs
- InputManager.cs
- ClientTarget.cs