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
- ByteStream.cs
- DigitShape.cs
- CursorConverter.cs
- ScrollPatternIdentifiers.cs
- HtmlEncodedRawTextWriter.cs
- SapiRecoContext.cs
- HostedTransportConfigurationBase.cs
- SQLBytesStorage.cs
- shaperfactoryquerycachekey.cs
- RectConverter.cs
- PenThread.cs
- DtdParser.cs
- LinkArea.cs
- SafeProcessHandle.cs
- RuntimeUtils.cs
- PluralizationServiceUtil.cs
- EdgeProfileValidation.cs
- ConfigXmlText.cs
- SoapFault.cs
- RequestCache.cs
- HeaderUtility.cs
- SymbolType.cs
- TextEditorTables.cs
- StringUtil.cs
- ReadOnlyCollectionBuilder.cs
- MessageQueuePermissionEntry.cs
- ImageButton.cs
- SwitchLevelAttribute.cs
- TreeBuilder.cs
- ColorIndependentAnimationStorage.cs
- GeometryGroup.cs
- XslException.cs
- ToolStripControlHost.cs
- UnhandledExceptionEventArgs.cs
- DBConnection.cs
- SqlConnectionPoolProviderInfo.cs
- ToolStripLabel.cs
- Attribute.cs
- AnnotationResource.cs
- ExpressionTable.cs
- DispatcherHookEventArgs.cs
- DBCSCodePageEncoding.cs
- ClientCultureInfo.cs
- CursorEditor.cs
- ServerValidateEventArgs.cs
- XhtmlTextWriter.cs
- RemoteArgument.cs
- TextEffect.cs
- EntityDataSourceChangedEventArgs.cs
- TargetControlTypeCache.cs
- OLEDB_Util.cs
- FileDialog.cs
- SignatureDescription.cs
- DetailsView.cs
- BCryptHashAlgorithm.cs
- XmlSchemaType.cs
- printdlgexmarshaler.cs
- ConnectionPointCookie.cs
- SynchronizingStream.cs
- XamlReader.cs
- ToolStripDropDownDesigner.cs
- UseLicense.cs
- NamespaceTable.cs
- ConditionCollection.cs
- Screen.cs
- FlowDocumentScrollViewer.cs
- xml.cs
- MgmtConfigurationRecord.cs
- XmlName.cs
- ClientProxyGenerator.cs
- Stack.cs
- AdapterDictionary.cs
- LineSegment.cs
- MouseCaptureWithinProperty.cs
- XmlWellformedWriter.cs
- DataTableMapping.cs
- ConfigXmlText.cs
- HttpSessionStateBase.cs
- TranslateTransform3D.cs
- RegularExpressionValidator.cs
- Scanner.cs
- BevelBitmapEffect.cs
- EventProviderWriter.cs
- DataGridViewComboBoxColumn.cs
- Icon.cs
- Rotation3D.cs
- TabControl.cs
- DataGrid.cs
- DesignerOptionService.cs
- StringValueConverter.cs
- ObjectConverter.cs
- ItemAutomationPeer.cs
- ToolBarOverflowPanel.cs
- EmptyControlCollection.cs
- ApplicationFileParser.cs
- shaperfactoryquerycacheentry.cs
- XmlWrappingWriter.cs
- ProvidePropertyAttribute.cs
- XmlText.cs
- JavascriptCallbackResponseProperty.cs