Code:
/ FX-1434 / FX-1434 / 1.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
- COM2IDispatchConverter.cs
- HttpStaticObjectsCollectionBase.cs
- RootProfilePropertySettingsCollection.cs
- AuthenticationModuleElementCollection.cs
- RawMouseInputReport.cs
- InternalCache.cs
- Content.cs
- TransactionsSectionGroup.cs
- WorkflowRuntimeSection.cs
- TextRunTypographyProperties.cs
- WindowsTab.cs
- SQLDecimal.cs
- CapabilitiesRule.cs
- StorageFunctionMapping.cs
- SelectedDatesCollection.cs
- RegexCode.cs
- Trace.cs
- EdmRelationshipRoleAttribute.cs
- StorageFunctionMapping.cs
- PasswordRecoveryDesigner.cs
- Queue.cs
- LinqDataSourceContextData.cs
- EventItfInfo.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DispatcherSynchronizationContext.cs
- Convert.cs
- BigInt.cs
- ServiceDescription.cs
- SessionEndingCancelEventArgs.cs
- ScrollProperties.cs
- StateDesigner.LayoutSelectionGlyph.cs
- KeyValueConfigurationElement.cs
- HttpResponseInternalBase.cs
- MenuCommandsChangedEventArgs.cs
- MemoryFailPoint.cs
- SqlInfoMessageEvent.cs
- DescendantBaseQuery.cs
- UIElementParagraph.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- IIS7UserPrincipal.cs
- MulticastDelegate.cs
- ElementUtil.cs
- KeyTimeConverter.cs
- HttpWebRequestElement.cs
- Color.cs
- ToolboxItem.cs
- MyContact.cs
- ApplicationBuildProvider.cs
- DeclaredTypeElementCollection.cs
- CategoryNameCollection.cs
- UmAlQuraCalendar.cs
- QilXmlWriter.cs
- ToolboxItemFilterAttribute.cs
- SafeRightsManagementQueryHandle.cs
- ClrPerspective.cs
- LocalizeDesigner.cs
- altserialization.cs
- ApplicationServicesHostFactory.cs
- SmtpReplyReaderFactory.cs
- AssemblyCacheEntry.cs
- FormatterServicesNoSerializableCheck.cs
- MetaTableHelper.cs
- SpellerHighlightLayer.cs
- DataGridItemCollection.cs
- LineBreak.cs
- SiteMapDataSource.cs
- RelationshipDetailsRow.cs
- SiteMapProvider.cs
- OleDbRowUpdatedEvent.cs
- SequentialActivityDesigner.cs
- CalendarDataBindingHandler.cs
- ConnectionOrientedTransportBindingElement.cs
- CompositeDataBoundControl.cs
- ScriptResourceInfo.cs
- RegistrySecurity.cs
- LocalizableResourceBuilder.cs
- DelayDesigner.cs
- KeyboardNavigation.cs
- FunctionQuery.cs
- Mutex.cs
- KeyValueInternalCollection.cs
- AnimationStorage.cs
- ListenerElementsCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- CollectionBase.cs
- TextUtf8RawTextWriter.cs
- InternalBase.cs
- Figure.cs
- FontStretches.cs
- DataDesignUtil.cs
- HandleInitializationContext.cs
- _DomainName.cs
- CompressedStack.cs
- SendSecurityHeaderElement.cs
- RtType.cs
- SiteOfOriginContainer.cs
- XmlNodeChangedEventManager.cs
- ImportedPolicyConversionContext.cs
- LogRecordSequence.cs
- LicenseContext.cs