Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. // 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
- HyperLink.cs
- HttpTransportElement.cs
- ClientData.cs
- Button.cs
- ScrollChrome.cs
- xmlformatgeneratorstatics.cs
- XmlElementList.cs
- Wildcard.cs
- PartitionedStreamMerger.cs
- AttributeCallbackBuilder.cs
- TextServicesPropertyRanges.cs
- BitmapEffectRenderDataResource.cs
- WebPartEditorApplyVerb.cs
- TextProperties.cs
- TagNameToTypeMapper.cs
- PropertyMap.cs
- LookupBindingPropertiesAttribute.cs
- BehaviorEditorPart.cs
- PropertyBuilder.cs
- CacheRequest.cs
- Figure.cs
- XmlSchemaAttributeGroupRef.cs
- TimeZone.cs
- EntityDataSourceViewSchema.cs
- ConfigurationStrings.cs
- UnsafeNativeMethods.cs
- CapabilitiesPattern.cs
- CodeDomLoader.cs
- GeneralTransform3DTo2D.cs
- DesignerView.Commands.cs
- OdbcConnectionOpen.cs
- FormsAuthenticationTicket.cs
- ClientData.cs
- SelectionProcessor.cs
- TopClause.cs
- PreviewPrintController.cs
- CapacityStreamGeometryContext.cs
- HMACMD5.cs
- CodeSnippetTypeMember.cs
- ResourceSet.cs
- ResourcesGenerator.cs
- MetadataPropertyAttribute.cs
- GlyphShapingProperties.cs
- EventLogPermissionHolder.cs
- ISFClipboardData.cs
- GCHandleCookieTable.cs
- SocketCache.cs
- WindowsScrollBarBits.cs
- TypedElement.cs
- ChannelFactory.cs
- ContainsRowNumberChecker.cs
- SspiHelper.cs
- LayoutTable.cs
- EmbeddedMailObject.cs
- ImageButton.cs
- MatrixUtil.cs
- DelimitedListTraceListener.cs
- RayHitTestParameters.cs
- AuthorizationRule.cs
- NullableDoubleSumAggregationOperator.cs
- BamlResourceContent.cs
- hwndwrapper.cs
- RuntimeHelpers.cs
- HostedTransportConfigurationBase.cs
- XmlParser.cs
- RtfToXamlLexer.cs
- ComPlusServiceHost.cs
- WebPartDescriptionCollection.cs
- Binding.cs
- DateTimeOffsetStorage.cs
- _AcceptOverlappedAsyncResult.cs
- FixedSOMLineCollection.cs
- CustomPopupPlacement.cs
- ConfigurationStrings.cs
- WebPartPersonalization.cs
- Compiler.cs
- CalendarDesigner.cs
- ProfileInfo.cs
- TableLayoutCellPaintEventArgs.cs
- BitmapEffectDrawingContextState.cs
- WorkflowExecutor.cs
- UserPreferenceChangedEventArgs.cs
- GridViewDeleteEventArgs.cs
- EventHandlersStore.cs
- HttpServerVarsCollection.cs
- DiagnosticsConfiguration.cs
- FontNamesConverter.cs
- XamlBrushSerializer.cs
- Bits.cs
- UInt32Storage.cs
- GeometryHitTestResult.cs
- AccessDataSource.cs
- Lazy.cs
- ColorAnimation.cs
- ToolboxComponentsCreatingEventArgs.cs
- HostnameComparisonMode.cs
- ResourceAttributes.cs
- XmlReader.cs
- FormViewInsertedEventArgs.cs
- PageParserFilter.cs