Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FileChangesMonitor.cs
- CqlLexerHelpers.cs
- IconHelper.cs
- DbExpressionRules.cs
- ContextStack.cs
- ValueSerializerAttribute.cs
- BinaryObjectInfo.cs
- TextEditorLists.cs
- SymbolTable.cs
- RSAPKCS1SignatureDeformatter.cs
- FileLogRecord.cs
- FileIOPermission.cs
- InvalidPipelineStoreException.cs
- PrimaryKeyTypeConverter.cs
- HandleCollector.cs
- ImportContext.cs
- DeclarationUpdate.cs
- WsatServiceAddress.cs
- TableLayoutColumnStyleCollection.cs
- Line.cs
- MetadataItem.cs
- EncodingTable.cs
- WindowsGraphics.cs
- BaseDataListActionList.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlSchemaObjectTable.cs
- WebPartTransformer.cs
- CornerRadiusConverter.cs
- ProfilePropertyMetadata.cs
- ListViewDeletedEventArgs.cs
- Color.cs
- QueryCursorEventArgs.cs
- TextServicesHost.cs
- DbProviderFactory.cs
- OdbcDataReader.cs
- PersonalizationProvider.cs
- UnsafePeerToPeerMethods.cs
- TypedTableBase.cs
- BitSet.cs
- QueryStringParameter.cs
- TextEvent.cs
- XmlSchemaSimpleContent.cs
- MessageHeaderException.cs
- UpDownBase.cs
- DataRelationPropertyDescriptor.cs
- XmlSchemaRedefine.cs
- WebPart.cs
- SplitterPanel.cs
- Wildcard.cs
- TdsEnums.cs
- BinaryReader.cs
- PackageDigitalSignature.cs
- UnsafeNetInfoNativeMethods.cs
- ResolveMatches11.cs
- UInt16Converter.cs
- AQNBuilder.cs
- ProgressiveCrcCalculatingStream.cs
- IntegerValidatorAttribute.cs
- DataControlPagerLinkButton.cs
- SQLCharsStorage.cs
- IndicFontClient.cs
- SHA256.cs
- HierarchicalDataSourceControl.cs
- HtmlTableRow.cs
- TreeNodeCollection.cs
- ArgumentException.cs
- EventWaitHandleSecurity.cs
- WebBrowserEvent.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- ItemChangedEventArgs.cs
- ButtonRenderer.cs
- SpellerError.cs
- BindingBase.cs
- ReaderWriterLock.cs
- HtmlTableCellCollection.cs
- XPathMessageFilter.cs
- BindingExpressionUncommonField.cs
- BuildProvider.cs
- COAUTHINFO.cs
- CustomWebEventKey.cs
- ThaiBuddhistCalendar.cs
- ExtendedPropertyCollection.cs
- RemotingAttributes.cs
- Border.cs
- SmiContextFactory.cs
- FormsAuthenticationEventArgs.cs
- Object.cs
- MonthChangedEventArgs.cs
- COM2AboutBoxPropertyDescriptor.cs
- InertiaTranslationBehavior.cs
- RealizationContext.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TypeInitializationException.cs
- MailAddress.cs
- KeyValueConfigurationCollection.cs
- CursorConverter.cs
- WindowsAuthenticationModule.cs
- WebPartConnectionsConnectVerb.cs
- ValueType.cs
- HwndKeyboardInputProvider.cs