Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / DetailsViewRowCollection.cs / 1 / DetailsViewRowCollection.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)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DetailsViewRowCollection : ICollection { private ArrayList _rows; ///Represents the collection of ///objects. /// public DetailsViewRowCollection(ArrayList rows) { this._rows = rows; } ///Initializes a new instance of the ///class. /// public int Count { get { return _rows.Count; } } ///Gets the number of rows in the collection. This property is read-only. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether rows in the ///can be /// modified. This property is read-only. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is /// thread-safe. This property is read-only. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. This property is read-only. ////// public DetailsViewRow this[int index] { get { return(DetailsViewRow)_rows[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(DetailsViewRow[] array, int index) { ((ICollection)this).CopyTo(array, index); } ///Copies the contents of the entire collection into an ///appending /// at the specified index of the . void ICollection.CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } /// /// public IEnumerator GetEnumerator() { return _rows.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Creates an enumerator for the ///used to /// iterate through the collection.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ArrayWithOffset.cs
- DataGridHeaderBorder.cs
- SymbolType.cs
- GB18030Encoding.cs
- OleDbConnectionFactory.cs
- InkCanvasFeedbackAdorner.cs
- PasswordBox.cs
- XMLDiffLoader.cs
- RayMeshGeometry3DHitTestResult.cs
- ZipIOLocalFileBlock.cs
- RelatedCurrencyManager.cs
- ImportStoreException.cs
- PassportAuthenticationEventArgs.cs
- ImmComposition.cs
- PublisherMembershipCondition.cs
- RtfNavigator.cs
- BitmapEffectOutputConnector.cs
- PingOptions.cs
- Compiler.cs
- CodeObjectCreateExpression.cs
- StringUtil.cs
- DiagnosticTraceSource.cs
- HttpStaticObjectsCollectionWrapper.cs
- FileUpload.cs
- Rect3D.cs
- FrugalMap.cs
- PropertyIDSet.cs
- PolyBezierSegment.cs
- TaskFileService.cs
- SoapCodeExporter.cs
- MembershipPasswordException.cs
- DataServiceRequestException.cs
- SyndicationElementExtensionCollection.cs
- Cursors.cs
- sqlstateclientmanager.cs
- DbTransaction.cs
- SqlDataSourceFilteringEventArgs.cs
- DbUpdateCommandTree.cs
- TextRunTypographyProperties.cs
- StreamReader.cs
- PipelineComponent.cs
- DebugView.cs
- TreeViewHitTestInfo.cs
- VisualStateGroup.cs
- CodeDomConfigurationHandler.cs
- CatalogPartChrome.cs
- FormViewCommandEventArgs.cs
- InputScope.cs
- XmlNamedNodeMap.cs
- WindowsTreeView.cs
- Rect.cs
- PLINQETWProvider.cs
- XmlNotation.cs
- FixedDocument.cs
- GridView.cs
- ValidationError.cs
- AliasExpr.cs
- ComponentCollection.cs
- DoubleConverter.cs
- OracleConnectionFactory.cs
- Label.cs
- Descriptor.cs
- StructuralCache.cs
- XmlIgnoreAttribute.cs
- DataSetSchema.cs
- HwndSubclass.cs
- InternalUserCancelledException.cs
- AlternateViewCollection.cs
- PropertyDescriptorCollection.cs
- Separator.cs
- AsmxEndpointPickerExtension.cs
- MatrixAnimationUsingPath.cs
- InputLangChangeEvent.cs
- ButtonChrome.cs
- FloaterBaseParagraph.cs
- Thumb.cs
- SystemSounds.cs
- PrintPreviewControl.cs
- ListViewItem.cs
- FileDetails.cs
- CdpEqualityComparer.cs
- AssemblyResourceLoader.cs
- ArithmeticException.cs
- TableLayoutPanelResizeGlyph.cs
- WebPartExportVerb.cs
- ToolStripScrollButton.cs
- DataGridRowHeader.cs
- Filter.cs
- DecoratedNameAttribute.cs
- NamedPermissionSet.cs
- TextShapeableCharacters.cs
- HostedTransportConfigurationManager.cs
- TemplateXamlTreeBuilder.cs
- TraceListener.cs
- ScrollItemPattern.cs
- DocumentsTrace.cs
- TemplateBaseAction.cs
- ObjectDataSourceFilteringEventArgs.cs
- GridViewActionList.cs
- WindowsListViewGroupHelper.cs