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
- HighlightComponent.cs
- FixedSOMLineRanges.cs
- MeasureItemEvent.cs
- LinkButton.cs
- WebHttpElement.cs
- AppLevelCompilationSectionCache.cs
- CompleteWizardStep.cs
- PartitionedStream.cs
- TabControlDesigner.cs
- HostedHttpTransportManager.cs
- Journal.cs
- XmlQueryType.cs
- WebPartsSection.cs
- FamilyMapCollection.cs
- GroupBox.cs
- DesignerDataStoredProcedure.cs
- VerificationAttribute.cs
- FixedSOMPageElement.cs
- DataObjectAttribute.cs
- AssertFilter.cs
- CommentEmitter.cs
- Grant.cs
- SafeSecurityHandles.cs
- HttpCookieCollection.cs
- OverloadGroupAttribute.cs
- CqlWriter.cs
- UpdateCommand.cs
- ScopelessEnumAttribute.cs
- SHA1Managed.cs
- SizeF.cs
- XmlNodeList.cs
- ValueType.cs
- MultiDataTrigger.cs
- DataBinding.cs
- SelectorAutomationPeer.cs
- XmlTypeAttribute.cs
- SqlVisitor.cs
- StaticExtensionConverter.cs
- BatchWriter.cs
- Activator.cs
- XMLSchema.cs
- BrushValueSerializer.cs
- RuleSetReference.cs
- ThicknessKeyFrameCollection.cs
- FileFormatException.cs
- RectangleF.cs
- SmiConnection.cs
- UnaryNode.cs
- SoapUnknownHeader.cs
- SqlDataSourceSelectingEventArgs.cs
- OpCodes.cs
- WorkflowInstanceSuspendedRecord.cs
- XhtmlConformanceSection.cs
- QuaternionAnimation.cs
- XhtmlBasicTextViewAdapter.cs
- WebPartTransformer.cs
- EventsTab.cs
- RuntimeArgumentHandle.cs
- CodeDOMProvider.cs
- ToolBarButton.cs
- CustomBinding.cs
- PageThemeBuildProvider.cs
- QilInvokeLateBound.cs
- BinaryObjectInfo.cs
- ZeroOpNode.cs
- SkipStoryboardToFill.cs
- OdbcError.cs
- CodeNamespaceCollection.cs
- WebControlsSection.cs
- SchemaCollectionPreprocessor.cs
- StringDictionary.cs
- GeneralTransform.cs
- DesignerView.xaml.cs
- WebServiceParameterData.cs
- StructuralType.cs
- ValueTypeFixupInfo.cs
- EmbossBitmapEffect.cs
- DataBoundControlAdapter.cs
- NativeCppClassAttribute.cs
- ObjectQuery_EntitySqlExtensions.cs
- DataControlReference.cs
- ContextMenu.cs
- SqlCrossApplyToCrossJoin.cs
- Axis.cs
- PropertyPushdownHelper.cs
- CryptoKeySecurity.cs
- StructuredTypeEmitter.cs
- GenerateTemporaryTargetAssembly.cs
- ProviderCommandInfoUtils.cs
- ContentType.cs
- DropShadowEffect.cs
- TypeDescriptor.cs
- WindowAutomationPeer.cs
- WebPartMovingEventArgs.cs
- Thumb.cs
- BindingGraph.cs
- ConnectionPoint.cs
- ItemList.cs
- ToolStripDesignerUtils.cs
- ClientFactory.cs