Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- AnnotationMap.cs
- ItemMap.cs
- EventToken.cs
- InkCanvasInnerCanvas.cs
- LexicalChunk.cs
- XmlName.cs
- NonBatchDirectoryCompiler.cs
- ImageClickEventArgs.cs
- ThreadStaticAttribute.cs
- ImpersonationContext.cs
- Query.cs
- TextTreeRootNode.cs
- RegistrationServices.cs
- ContextStack.cs
- TreeWalker.cs
- DbReferenceCollection.cs
- TransformGroup.cs
- PkcsMisc.cs
- LocalizabilityAttribute.cs
- WebExceptionStatus.cs
- Color.cs
- MarkedHighlightComponent.cs
- AspCompat.cs
- TextRangeSerialization.cs
- ColumnHeaderConverter.cs
- DataGridLinkButton.cs
- Message.cs
- LeaseManager.cs
- ContentValidator.cs
- TreeNode.cs
- MimeWriter.cs
- DiagnosticTraceSource.cs
- TextServicesPropertyRanges.cs
- Speller.cs
- keycontainerpermission.cs
- UmAlQuraCalendar.cs
- StateChangeEvent.cs
- WindowsHyperlink.cs
- QualifiedCellIdBoolean.cs
- SafeReversePInvokeHandle.cs
- WindowsStatusBar.cs
- MaterializeFromAtom.cs
- CompModSwitches.cs
- SqlErrorCollection.cs
- Track.cs
- Registration.cs
- Path.cs
- CharacterMetricsDictionary.cs
- FixedLineResult.cs
- Material.cs
- TemplatePagerField.cs
- ScriptingAuthenticationServiceSection.cs
- SqlTrackingQuery.cs
- DataGridViewCellParsingEventArgs.cs
- DirectionalLight.cs
- WebSysDefaultValueAttribute.cs
- UserNameSecurityTokenAuthenticator.cs
- ScrollChrome.cs
- RemotingAttributes.cs
- InfoCardServiceInstallComponent.cs
- SafeTokenHandle.cs
- EntitySqlException.cs
- QilSortKey.cs
- AuthenticationModulesSection.cs
- CommandExpr.cs
- Int32Converter.cs
- PaintValueEventArgs.cs
- RuleSetBrowserDialog.cs
- ZipIOExtraFieldPaddingElement.cs
- SamlAssertion.cs
- VirtualizingPanel.cs
- DataTable.cs
- ADMembershipProvider.cs
- AuthenticateEventArgs.cs
- PointLight.cs
- CacheSection.cs
- Compilation.cs
- NameValueCollection.cs
- DataObjectMethodAttribute.cs
- DbSetClause.cs
- ConditionValidator.cs
- HeaderedItemsControl.cs
- XmlSerializerImportOptions.cs
- DefaultPropertyAttribute.cs
- DataColumnMappingCollection.cs
- ToolStripRenderer.cs
- BindingCompleteEventArgs.cs
- Timer.cs
- PeerConnector.cs
- StrongNameIdentityPermission.cs
- Polyline.cs
- Rotation3DKeyFrameCollection.cs
- OracleConnectionFactory.cs
- StatusStrip.cs
- ContainerVisual.cs
- ConfigViewGenerator.cs
- DynamicScriptObject.cs
- AutomationElement.cs
- SafeHandles.cs
- DrawListViewColumnHeaderEventArgs.cs