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
- cookieexception.cs
- ScrollViewer.cs
- VectorCollection.cs
- TableSectionStyle.cs
- RoleGroupCollection.cs
- DataGridSortingEventArgs.cs
- ControlPropertyNameConverter.cs
- WebScriptServiceHost.cs
- ScaleTransform.cs
- RegexCode.cs
- MouseButton.cs
- PerspectiveCamera.cs
- BuildProviderCollection.cs
- FontStretch.cs
- ZipIOExtraField.cs
- BaseServiceProvider.cs
- XmlSchemaAttribute.cs
- RotationValidation.cs
- ZipIOExtraFieldElement.cs
- BevelBitmapEffect.cs
- SplitterCancelEvent.cs
- SocketElement.cs
- SqlFunctionAttribute.cs
- FileStream.cs
- BamlBinaryWriter.cs
- EventProvider.cs
- AnonymousIdentificationSection.cs
- StrokeNodeData.cs
- ExpressionNode.cs
- UnsafeNativeMethods.cs
- OdbcDataAdapter.cs
- ValidatingReaderNodeData.cs
- DataComponentMethodGenerator.cs
- WebPartMenu.cs
- EventTask.cs
- Size3DConverter.cs
- ProtocolsConfigurationEntry.cs
- AsyncCodeActivity.cs
- DllNotFoundException.cs
- ExternalCalls.cs
- RC2.cs
- storepermission.cs
- Pointer.cs
- TimeSpanConverter.cs
- StateManagedCollection.cs
- TypeTypeConverter.cs
- DataRow.cs
- DoubleAnimationUsingKeyFrames.cs
- WebControlsSection.cs
- DoubleStorage.cs
- RemoteCryptoSignHashRequest.cs
- ContentElement.cs
- ComPlusServiceLoader.cs
- COAUTHIDENTITY.cs
- BaseUriHelper.cs
- JsonFormatGeneratorStatics.cs
- Glyph.cs
- DataMemberFieldConverter.cs
- ZipIORawDataFileBlock.cs
- ReferenceConverter.cs
- QueryStringConverter.cs
- ResourceLoader.cs
- ObfuscationAttribute.cs
- TextShapeableCharacters.cs
- TrustVersion.cs
- TypeExtension.cs
- IOException.cs
- PassportAuthentication.cs
- DataKeyCollection.cs
- CopyAttributesAction.cs
- TextTreeTextElementNode.cs
- ObjectListCommandsPage.cs
- SchemeSettingElement.cs
- TextChangedEventArgs.cs
- SystemIcmpV6Statistics.cs
- ITreeGenerator.cs
- UInt32.cs
- SaveLedgerEntryRequest.cs
- DataGridViewCellValidatingEventArgs.cs
- AnnotationAdorner.cs
- lengthconverter.cs
- TypeConstant.cs
- XamlLoadErrorInfo.cs
- FeedUtils.cs
- WebHttpSecurityModeHelper.cs
- DesignTimeTemplateParser.cs
- SqlXml.cs
- LinqExpressionNormalizer.cs
- RectValueSerializer.cs
- EventLogQuery.cs
- FeatureSupport.cs
- TreeViewCancelEvent.cs
- HtmlInputHidden.cs
- AppSettingsExpressionBuilder.cs
- SortedSet.cs
- DataSourceCacheDurationConverter.cs
- XmlDataProvider.cs
- ActivityDesignerHelper.cs
- XmlNamespaceMapping.cs
- OleDbFactory.cs