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
- ICspAsymmetricAlgorithm.cs
- SimpleTextLine.cs
- ObjectMaterializedEventArgs.cs
- _OverlappedAsyncResult.cs
- XmlBufferReader.cs
- ChannelDemuxer.cs
- FileDialog.cs
- AssociativeAggregationOperator.cs
- StoryFragments.cs
- RoutedEventConverter.cs
- DropShadowEffect.cs
- QilVisitor.cs
- VisualBrush.cs
- ContainerSelectorBehavior.cs
- ContentPropertyAttribute.cs
- mil_sdk_version.cs
- AcceleratedTokenProviderState.cs
- TemplateBamlTreeBuilder.cs
- SettingsBase.cs
- TraceFilter.cs
- ContainerSelectorBehavior.cs
- XmlSignatureManifest.cs
- ProcessHostFactoryHelper.cs
- HtmlLink.cs
- OracleCommandBuilder.cs
- CodeArrayCreateExpression.cs
- TextEditorTables.cs
- XmlElement.cs
- DependentTransaction.cs
- GradientStop.cs
- Encoding.cs
- XmlComplianceUtil.cs
- StringValidatorAttribute.cs
- HttpHandlerAction.cs
- ConditionCollection.cs
- XMLSchema.cs
- TemplateNameScope.cs
- SqlCommandAsyncResult.cs
- InvocationExpression.cs
- FileAuthorizationModule.cs
- FrameworkContextData.cs
- ModelUIElement3D.cs
- MergeLocalizationDirectives.cs
- Literal.cs
- HostingMessageProperty.cs
- ProcessProtocolHandler.cs
- FunctionUpdateCommand.cs
- AssemblyHash.cs
- ArraySubsetEnumerator.cs
- OperationCanceledException.cs
- StateBag.cs
- hwndwrapper.cs
- codemethodreferenceexpression.cs
- MonthChangedEventArgs.cs
- StringValidatorAttribute.cs
- OdbcInfoMessageEvent.cs
- SQLInt64.cs
- MDIWindowDialog.cs
- BamlLocalizationDictionary.cs
- CharacterShapingProperties.cs
- CommandField.cs
- EnumType.cs
- SQLInt32.cs
- SequentialUshortCollection.cs
- DesignerUtils.cs
- CopyOnWriteList.cs
- ColorTransformHelper.cs
- HttpException.cs
- WindowsButton.cs
- Byte.cs
- BitmapEffectInputData.cs
- ProfileInfo.cs
- SystemIPGlobalStatistics.cs
- FormDocumentDesigner.cs
- ProfileService.cs
- X509CertificateCollection.cs
- XPathNodeHelper.cs
- contentDescriptor.cs
- TemplateComponentConnector.cs
- HtmlShim.cs
- BaseCodePageEncoding.cs
- LabelDesigner.cs
- FormViewCommandEventArgs.cs
- WebPartEditorCancelVerb.cs
- ResourceDescriptionAttribute.cs
- DataListCommandEventArgs.cs
- TextHidden.cs
- PersonalizableAttribute.cs
- DataFieldCollectionEditor.cs
- XmlLanguage.cs
- Baml2006ReaderSettings.cs
- ListItemConverter.cs
- HtmlTable.cs
- QilList.cs
- RoleGroup.cs
- Convert.cs
- BinaryNode.cs
- RegexGroupCollection.cs
- BreakRecordTable.cs
- UpDownBase.cs