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
- EntityClassGenerator.cs
- DbException.cs
- TcpTransportSecurity.cs
- WrappedIUnknown.cs
- ValidateNames.cs
- ListBindableAttribute.cs
- RoleGroupCollection.cs
- CorrelationTokenInvalidatedHandler.cs
- EventListenerClientSide.cs
- ReferenceList.cs
- XmlSchemaSequence.cs
- ClassImporter.cs
- COAUTHINFO.cs
- SystemIPv4InterfaceProperties.cs
- DetailsViewInsertedEventArgs.cs
- DataColumnCollection.cs
- CharUnicodeInfo.cs
- BackoffTimeoutHelper.cs
- WebPartMinimizeVerb.cs
- EntityDataSourceMemberPath.cs
- ContainerControlDesigner.cs
- ExternalException.cs
- Selection.cs
- AssemblyInfo.cs
- ProtectedConfiguration.cs
- URLMembershipCondition.cs
- AppSecurityManager.cs
- MediaElementAutomationPeer.cs
- ResourceDescriptionAttribute.cs
- ColorTransform.cs
- DataIdProcessor.cs
- ApplicationManager.cs
- PageTheme.cs
- NativeMethods.cs
- PersonalizationProviderCollection.cs
- TablePattern.cs
- _HTTPDateParse.cs
- AutomationPropertyInfo.cs
- CodeTypeReferenceExpression.cs
- SharedDp.cs
- DesignerActionKeyboardBehavior.cs
- RawStylusInputReport.cs
- TraceSource.cs
- CommandEventArgs.cs
- TemplatePagerField.cs
- ContractSearchPattern.cs
- RtfControlWordInfo.cs
- WebBrowserDocumentCompletedEventHandler.cs
- OleDbReferenceCollection.cs
- EntityProviderFactory.cs
- IssuanceTokenProviderState.cs
- SqlDataReaderSmi.cs
- ContentControl.cs
- DiagnosticTrace.cs
- CodeTypeDeclaration.cs
- RequiredFieldValidator.cs
- TargetConverter.cs
- StylusButtonCollection.cs
- BufferedStream.cs
- CodePropertyReferenceExpression.cs
- SamlNameIdentifierClaimResource.cs
- KeyTimeConverter.cs
- UnhandledExceptionEventArgs.cs
- ErrorProvider.cs
- Vector3DCollectionConverter.cs
- SimpleWorkerRequest.cs
- QuotedPrintableStream.cs
- StyleCollection.cs
- _UriSyntax.cs
- WmlValidationSummaryAdapter.cs
- LassoHelper.cs
- DataTableMapping.cs
- PageWrapper.cs
- SqlReorderer.cs
- DocumentPaginator.cs
- CodeTypeReference.cs
- ProfilePropertySettings.cs
- ContainerControl.cs
- CheckBoxFlatAdapter.cs
- SettingsSection.cs
- FirstMatchCodeGroup.cs
- BamlWriter.cs
- IMembershipProvider.cs
- OleDbMetaDataFactory.cs
- Propagator.JoinPropagator.cs
- DBConnectionString.cs
- BinaryEditor.cs
- CodeMemberMethod.cs
- AppendHelper.cs
- ConnectionPointGlyph.cs
- PriorityChain.cs
- ToolStripInSituService.cs
- SqlInternalConnection.cs
- Converter.cs
- EmptyControlCollection.cs
- ServiceOperation.cs
- SqlTransaction.cs
- EventHandlers.cs
- BitmapEffect.cs
- dsa.cs