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
- HttpChannelBindingToken.cs
- DataGridViewCellStyleConverter.cs
- RuleEngine.cs
- GridViewPageEventArgs.cs
- ItemList.cs
- DisplayInformation.cs
- ReachSerializationCacheItems.cs
- _ContextAwareResult.cs
- EventMappingSettings.cs
- JsonFormatReaderGenerator.cs
- SqlDataSource.cs
- ValueTable.cs
- DbLambda.cs
- XmlDeclaration.cs
- BuildProvider.cs
- ValidatingPropertiesEventArgs.cs
- AsyncResult.cs
- SqlNotificationEventArgs.cs
- XPathExpr.cs
- HtmlInputText.cs
- TextEncodedRawTextWriter.cs
- ResolveCriteriaCD1.cs
- DataGridViewColumnCollection.cs
- ProxyManager.cs
- RenderTargetBitmap.cs
- EmptyReadOnlyDictionaryInternal.cs
- DatagridviewDisplayedBandsData.cs
- TableLayoutColumnStyleCollection.cs
- WebPartCloseVerb.cs
- BindingContext.cs
- EdmSchemaError.cs
- shaperfactoryquerycachekey.cs
- EntityDataSourceWrapper.cs
- Expression.cs
- LabelLiteral.cs
- StringSorter.cs
- DataGridViewCellStateChangedEventArgs.cs
- MaterialCollection.cs
- MimeParameters.cs
- CodeTypeReferenceCollection.cs
- ClientApiGenerator.cs
- RegexStringValidator.cs
- ClickablePoint.cs
- DataListItemEventArgs.cs
- CapabilitiesRule.cs
- TemplateBindingExtension.cs
- SafeNativeMethods.cs
- MenuCommand.cs
- BindUriHelper.cs
- ImageKeyConverter.cs
- UTF7Encoding.cs
- TypeDescriptor.cs
- ZipArchive.cs
- RegexInterpreter.cs
- XmlNavigatorStack.cs
- Message.cs
- KeysConverter.cs
- LassoSelectionBehavior.cs
- AutomationIdentifier.cs
- PathFigureCollection.cs
- UIElement.cs
- Decorator.cs
- CollectionView.cs
- WebServiceEnumData.cs
- ImageAttributes.cs
- ObjectStateFormatter.cs
- EventLogPermissionHolder.cs
- TextServicesHost.cs
- sqlstateclientmanager.cs
- OperationSelectorBehavior.cs
- WebPartZoneAutoFormat.cs
- Rectangle.cs
- HtmlTextArea.cs
- SQLInt64Storage.cs
- TypeExtensionConverter.cs
- HttpCacheVary.cs
- AnimationTimeline.cs
- ToolTipAutomationPeer.cs
- SignatureHelper.cs
- SqlDataSourceStatusEventArgs.cs
- sqlinternaltransaction.cs
- GeometryConverter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DocumentReferenceCollection.cs
- MethodAccessException.cs
- ExpressionBuilder.cs
- DataContract.cs
- CryptoKeySecurity.cs
- DisplayNameAttribute.cs
- ExtractorMetadata.cs
- Flattener.cs
- TileBrush.cs
- RawStylusInputCustomDataList.cs
- RuntimeEnvironment.cs
- ModelMemberCollection.cs
- Schema.cs
- Set.cs
- ContainerActivationHelper.cs
- ActivationArguments.cs
- NavigatorOutput.cs