Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DataKeyCollection.cs / 1 / DataKeyCollection.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 DataKeyCollection : ICollection { private ArrayList keys; ////// public DataKeyCollection(ArrayList keys) { this.keys = keys; } ///Initializes a new instance of the ///class. /// public int Count { get { return keys.Count; } } ///Gets the number of objects in the collection. This property is read-only. ////// public bool IsReadOnly { get { return false; } } ///Gets the value that specifies whether items 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 object this[int index] { get { return keys[index]; } } ///Gets a ///at the specified index in the collection. This property is read-only. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies the contents of the entire collection into an ///appending at /// the specified index of the . /// public IEnumerator GetEnumerator() { return keys.GetEnumerator(); } } }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
- MessageBox.cs
- SqlBulkCopyColumnMappingCollection.cs
- embossbitmapeffect.cs
- SqlProviderUtilities.cs
- RefExpr.cs
- TextParagraphCache.cs
- TextServicesPropertyRanges.cs
- CircleHotSpot.cs
- QuaternionKeyFrameCollection.cs
- CancelEventArgs.cs
- PathFigureCollection.cs
- ItemChangedEventArgs.cs
- xmlglyphRunInfo.cs
- DelayedRegex.cs
- AutomationProperty.cs
- TextEditorContextMenu.cs
- CalendarDesigner.cs
- SynchronizedDisposablePool.cs
- RtfFormatStack.cs
- ResourceReferenceKeyNotFoundException.cs
- DataGridTableCollection.cs
- SafeNativeMethods.cs
- DataGridViewColumnCollection.cs
- SqlConnectionFactory.cs
- CompilerGeneratedAttribute.cs
- CapiNative.cs
- arabicshape.cs
- SortedList.cs
- ThreadStaticAttribute.cs
- XmlHierarchyData.cs
- TimelineGroup.cs
- GridEntryCollection.cs
- ImageAttributes.cs
- AssemblySettingAttributes.cs
- FixedPageStructure.cs
- DesignerContextDescriptor.cs
- DesignerAttribute.cs
- EncodingInfo.cs
- LinearKeyFrames.cs
- Token.cs
- HtmlInputButton.cs
- FilterQueryOptionExpression.cs
- StyleSelector.cs
- RoutedEventArgs.cs
- Function.cs
- DragEvent.cs
- ExpanderAutomationPeer.cs
- WebPartDeleteVerb.cs
- OrderPreservingSpoolingTask.cs
- InstancePersistenceCommand.cs
- _ShellExpression.cs
- Mouse.cs
- CmsInterop.cs
- RequestNavigateEventArgs.cs
- StringValueConverter.cs
- RequestCachingSection.cs
- KeySpline.cs
- CompressedStack.cs
- XPathItem.cs
- panel.cs
- StringValidator.cs
- ControlCachePolicy.cs
- ProviderUtil.cs
- cookie.cs
- BitmapFrame.cs
- ActivityExecutorDelegateInfo.cs
- OperatingSystem.cs
- InlineCollection.cs
- AssemblyNameProxy.cs
- SmiContextFactory.cs
- X500Name.cs
- SiteOfOriginContainer.cs
- HtmlControlPersistable.cs
- SafeRightsManagementQueryHandle.cs
- UnmanagedBitmapWrapper.cs
- InvalidPrinterException.cs
- NotifyParentPropertyAttribute.cs
- TransformerConfigurationWizardBase.cs
- XmlMtomWriter.cs
- SqlParameterCollection.cs
- EndPoint.cs
- RequestSecurityTokenResponse.cs
- MonitoringDescriptionAttribute.cs
- brushes.cs
- PersonalizationAdministration.cs
- CheckBoxPopupAdapter.cs
- SrgsGrammar.cs
- XXXInfos.cs
- NamespaceInfo.cs
- WarningException.cs
- UserPreferenceChangingEventArgs.cs
- baseaxisquery.cs
- SQLDateTimeStorage.cs
- CompilerState.cs
- WindowsFormsSynchronizationContext.cs
- CaseInsensitiveComparer.cs
- PeerNameResolver.cs
- DateTimeConverter.cs
- PolicyChain.cs
- OperatorExpressions.cs