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
- Triangle.cs
- TextMetrics.cs
- TextPattern.cs
- LiteralControl.cs
- TableStyle.cs
- Pair.cs
- XmlQueryTypeFactory.cs
- Zone.cs
- TextModifier.cs
- LexicalChunk.cs
- InstanceStore.cs
- DataMember.cs
- Overlapped.cs
- MetabaseServerConfig.cs
- DecimalConstantAttribute.cs
- UnsettableComboBox.cs
- PropertyDescriptorGridEntry.cs
- ConstNode.cs
- WebPartTransformer.cs
- ValidationSummary.cs
- XPathArrayIterator.cs
- X509Certificate2Collection.cs
- TextPattern.cs
- Scalars.cs
- SerTrace.cs
- ISAPIApplicationHost.cs
- ControlValuePropertyAttribute.cs
- ApplicationManager.cs
- DataTableMapping.cs
- TableRowCollection.cs
- TypeDescriptorContext.cs
- Asn1Utilities.cs
- XslVisitor.cs
- LinkedList.cs
- DSACryptoServiceProvider.cs
- WindowsGrip.cs
- SwitchElementsCollection.cs
- MetricEntry.cs
- EtwTrace.cs
- StrokeSerializer.cs
- TraceProvider.cs
- RightsController.cs
- EventLogTraceListener.cs
- TabItemAutomationPeer.cs
- WebDescriptionAttribute.cs
- DropDownList.cs
- ForeignConstraint.cs
- HttpResponseHeader.cs
- XmlNode.cs
- _ListenerResponseStream.cs
- ColorDialog.cs
- InputQueueChannel.cs
- SettingsProperty.cs
- FontStretches.cs
- RuntimeCompatibilityAttribute.cs
- CLSCompliantAttribute.cs
- DataGridViewMethods.cs
- XmlSchemaNotation.cs
- ProxyFragment.cs
- CompiledXpathExpr.cs
- PublisherMembershipCondition.cs
- FontInfo.cs
- CollectionViewGroupRoot.cs
- XPathMultyIterator.cs
- GlyphManager.cs
- DiagnosticTraceSchemas.cs
- LayoutEvent.cs
- HiddenField.cs
- DocumentXPathNavigator.cs
- PagePropertiesChangingEventArgs.cs
- ClassHandlersStore.cs
- XmlDataDocument.cs
- DetailsViewModeEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- DrawingBrush.cs
- ImageSourceTypeConverter.cs
- DataBindingHandlerAttribute.cs
- MLangCodePageEncoding.cs
- DocumentSequence.cs
- DesignerImageAdapter.cs
- EntitySetBase.cs
- QilGeneratorEnv.cs
- TextMarkerSource.cs
- EdmProviderManifest.cs
- SourceElementsCollection.cs
- HandledEventArgs.cs
- DelegateCompletionCallbackWrapper.cs
- ConfigurationManagerInternal.cs
- RuntimeConfig.cs
- SoapReflectionImporter.cs
- ControlIdConverter.cs
- Stopwatch.cs
- LinearKeyFrames.cs
- httpserverutility.cs
- ThreadSafeList.cs
- TransactedBatchingElement.cs
- HasCopySemanticsAttribute.cs
- XmlQuerySequence.cs
- ValidationSummary.cs