Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LockedHandleGlyph.cs
- FloatUtil.cs
- VoiceObjectToken.cs
- CLSCompliantAttribute.cs
- ContentPresenter.cs
- DataBindingList.cs
- WebPartDisplayMode.cs
- ConfigurationCollectionAttribute.cs
- PagedDataSource.cs
- FlowLayoutPanel.cs
- XmlSchemaComplexContentExtension.cs
- ApplicationSecurityManager.cs
- ExpressionsCollectionConverter.cs
- Cursors.cs
- UserControl.cs
- UndoManager.cs
- CodeAttachEventStatement.cs
- DataGridViewCell.cs
- GestureRecognitionResult.cs
- DescriptionAttribute.cs
- RecordManager.cs
- SecurityPolicySection.cs
- FixedPage.cs
- IIS7WorkerRequest.cs
- UpDownEvent.cs
- GlobalAllocSafeHandle.cs
- UrlMapping.cs
- NoPersistProperty.cs
- Rotation3DAnimationBase.cs
- StorageSetMapping.cs
- ScrollableControl.cs
- ChtmlPageAdapter.cs
- JoinElimination.cs
- AttributeParameterInfo.cs
- QilXmlWriter.cs
- FormViewModeEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- BaseDataList.cs
- ErrorFormatterPage.cs
- EncryptedKey.cs
- HtmlTableCellCollection.cs
- URL.cs
- GenericsNotImplementedException.cs
- Ops.cs
- ColorKeyFrameCollection.cs
- TdsParserSessionPool.cs
- ListenerAdapter.cs
- BufferModeSettings.cs
- CheckBoxBaseAdapter.cs
- CodeSnippetExpression.cs
- PrincipalPermission.cs
- SinglePageViewer.cs
- ExpressionPrefixAttribute.cs
- bidPrivateBase.cs
- NativeActivityFaultContext.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- WebPartTransformer.cs
- LayoutExceptionEventArgs.cs
- NamespaceInfo.cs
- HttpCapabilitiesBase.cs
- EventLogPermissionEntry.cs
- XmlSchemaChoice.cs
- designeractionlistschangedeventargs.cs
- TextWriterTraceListener.cs
- PathSegmentCollection.cs
- ArrayConverter.cs
- RegexCharClass.cs
- BamlWriter.cs
- CompiledELinqQueryState.cs
- BitmapFrameDecode.cs
- GenericUI.cs
- DataTemplateSelector.cs
- AlignmentXValidation.cs
- SrgsSubset.cs
- InternalConfigHost.cs
- AssemblyInfo.cs
- CustomWebEventKey.cs
- HttpCachePolicy.cs
- VSWCFServiceContractGenerator.cs
- NoneExcludedImageIndexConverter.cs
- documentsequencetextcontainer.cs
- versioninfo.cs
- MissingSatelliteAssemblyException.cs
- GuidConverter.cs
- BinaryParser.cs
- complextypematerializer.cs
- TextLineBreak.cs
- MetafileHeaderWmf.cs
- ADConnectionHelper.cs
- ResourceDefaultValueAttribute.cs
- BinaryMessageEncodingBindingElement.cs
- Confirm.cs
- DataView.cs
- FormClosedEvent.cs
- ContainerUIElement3D.cs
- PropertyMappingExceptionEventArgs.cs
- DependencyPropertyDescriptor.cs
- DocumentViewerAutomationPeer.cs
- ProxyAttribute.cs
- RawStylusSystemGestureInputReport.cs