Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StaticExtension.cs
- ValidationSummary.cs
- FreezableCollection.cs
- CorrelationManager.cs
- GeneralTransform2DTo3DTo2D.cs
- PropertyBuilder.cs
- FlowDocumentScrollViewer.cs
- WebServiceClientProxyGenerator.cs
- ErrorsHelper.cs
- ProcessExitedException.cs
- InitializingNewItemEventArgs.cs
- UserControlFileEditor.cs
- RelativeSource.cs
- ChameleonKey.cs
- UpdateRecord.cs
- ExtendedPropertyCollection.cs
- RegistrationServices.cs
- KeyGesture.cs
- ColorDialog.cs
- FontStretchConverter.cs
- DbExpressionBuilder.cs
- HighlightComponent.cs
- TreeNodeBindingCollection.cs
- DataGridViewRowConverter.cs
- DesignerDataConnection.cs
- SafeMILHandle.cs
- TextPenaltyModule.cs
- FactoryRecord.cs
- SerializerProvider.cs
- ProcessProtocolHandler.cs
- EncryptedXml.cs
- CleanUpVirtualizedItemEventArgs.cs
- ScriptingRoleServiceSection.cs
- serverconfig.cs
- SapiAttributeParser.cs
- DataGridViewRowEventArgs.cs
- ShellProvider.cs
- X500Name.cs
- BlurBitmapEffect.cs
- XmlStringTable.cs
- SchemaAttDef.cs
- IntranetCredentialPolicy.cs
- DbParameterCollectionHelper.cs
- TraceRecord.cs
- ObjectTag.cs
- CmsInterop.cs
- ExpressionReplacer.cs
- FatalException.cs
- AppDomain.cs
- ClientType.cs
- ByteAnimation.cs
- SmtpTransport.cs
- XAMLParseException.cs
- ByteKeyFrameCollection.cs
- PlacementWorkspace.cs
- ToggleButton.cs
- ClientSideQueueItem.cs
- GridItemPattern.cs
- URI.cs
- input.cs
- DecoderReplacementFallback.cs
- Compensate.cs
- Constraint.cs
- SqlEnums.cs
- FrameSecurityDescriptor.cs
- AtomPub10ServiceDocumentFormatter.cs
- UserUseLicenseDictionaryLoader.cs
- CompressionTransform.cs
- Stackframe.cs
- SrgsSemanticInterpretationTag.cs
- ResponseBodyWriter.cs
- WorkBatch.cs
- shaperfactoryquerycacheentry.cs
- MenuStrip.cs
- CompoundFileIOPermission.cs
- ProgressBarRenderer.cs
- RootBrowserWindow.cs
- Clause.cs
- MatchingStyle.cs
- RuntimeResourceSet.cs
- ColorConvertedBitmap.cs
- QilLiteral.cs
- HttpFileCollectionBase.cs
- InstanceKeyCompleteException.cs
- ReferencedCollectionType.cs
- SessionStateUtil.cs
- VectorAnimationUsingKeyFrames.cs
- Base64Stream.cs
- ProfilePropertySettings.cs
- LicenseException.cs
- PrintPreviewDialog.cs
- PresentationTraceSources.cs
- messageonlyhwndwrapper.cs
- BindUriHelper.cs
- Decoder.cs
- HwndKeyboardInputProvider.cs
- CultureInfoConverter.cs
- QuaternionRotation3D.cs
- CompilerGlobalScopeAttribute.cs
- controlskin.cs