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
- Renderer.cs
- SqlErrorCollection.cs
- AncillaryOps.cs
- FloaterBaseParaClient.cs
- ContainerActivationHelper.cs
- DbgUtil.cs
- ThrowHelper.cs
- MultilineStringConverter.cs
- WrapperEqualityComparer.cs
- DateRangeEvent.cs
- PrintPreviewDialog.cs
- FlowNode.cs
- Pool.cs
- COAUTHIDENTITY.cs
- MergePropertyDescriptor.cs
- _ProxyChain.cs
- DataGridViewRowCancelEventArgs.cs
- ControlPersister.cs
- TransformerInfoCollection.cs
- InputProcessorProfiles.cs
- ActivityExecutionContext.cs
- PermissionListSet.cs
- FastPropertyAccessor.cs
- XPathBinder.cs
- XPathBinder.cs
- ValueUtilsSmi.cs
- BitVector32.cs
- BrowserCapabilitiesFactoryBase.cs
- BindingValueChangedEventArgs.cs
- RectAnimationUsingKeyFrames.cs
- PropertyDescriptorComparer.cs
- OdbcConnectionPoolProviderInfo.cs
- SearchForVirtualItemEventArgs.cs
- SqlProfileProvider.cs
- AssemblyInfo.cs
- FormsAuthenticationUserCollection.cs
- SqlDataRecord.cs
- BaseParaClient.cs
- IteratorFilter.cs
- OverflowException.cs
- XmlIlVisitor.cs
- BitmapDownload.cs
- ColorAnimationBase.cs
- SectionInformation.cs
- ToolStripGrip.cs
- TimelineGroup.cs
- Closure.cs
- SqlProfileProvider.cs
- LicenseException.cs
- EntityCollection.cs
- precedingquery.cs
- LayoutTable.cs
- TextBoxLine.cs
- BitmapEffectvisualstate.cs
- RichTextBoxAutomationPeer.cs
- EntityDataSourceState.cs
- SQLInt64.cs
- FloaterParaClient.cs
- PropertyIDSet.cs
- objectresult_tresulttype.cs
- ValidationRule.cs
- InstanceLockTracking.cs
- ResolveRequestResponseAsyncResult.cs
- MinMaxParagraphWidth.cs
- ConnectionsZoneAutoFormat.cs
- QueryRewriter.cs
- CompositeScriptReference.cs
- JsonWriter.cs
- CellQuery.cs
- IMembershipProvider.cs
- InternalConfigSettingsFactory.cs
- CodeComment.cs
- MaskInputRejectedEventArgs.cs
- UiaCoreApi.cs
- MultiSelector.cs
- EntityContainerEmitter.cs
- ScriptReferenceEventArgs.cs
- CompilerHelpers.cs
- SuppressMergeCheckAttribute.cs
- KnownTypes.cs
- CalendarAutomationPeer.cs
- DesignSurfaceEvent.cs
- VerificationAttribute.cs
- XmlNode.cs
- WsatServiceAddress.cs
- SaveFileDialog.cs
- baseshape.cs
- FileIOPermission.cs
- wgx_render.cs
- CompilerError.cs
- CodeAttributeDeclaration.cs
- XamlWrappingReader.cs
- UIntPtr.cs
- NotifyParentPropertyAttribute.cs
- ObjectPersistData.cs
- ToolboxItemAttribute.cs
- ReferencedCollectionType.cs
- BaseValidator.cs
- DataObjectCopyingEventArgs.cs
- CollectionType.cs