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
- TypedReference.cs
- Vector3DAnimationBase.cs
- PageVisual.cs
- DecryptedHeader.cs
- SmtpReplyReaderFactory.cs
- HttpResponseHeader.cs
- WebBaseEventKeyComparer.cs
- TextEditorDragDrop.cs
- ConfigXmlSignificantWhitespace.cs
- PasswordTextNavigator.cs
- WindowsTokenRoleProvider.cs
- RsaSecurityKey.cs
- ResourceSet.cs
- FixedPageAutomationPeer.cs
- InputBindingCollection.cs
- AssemblyInfo.cs
- KeyedCollection.cs
- SchemaManager.cs
- DetailsViewPageEventArgs.cs
- MethodBuilder.cs
- X509CertificateInitiatorServiceCredential.cs
- ClassValidator.cs
- BehaviorEditorPart.cs
- ComponentRenameEvent.cs
- ObjectAssociationEndMapping.cs
- SelectedGridItemChangedEvent.cs
- FileDialogCustomPlace.cs
- TransformPatternIdentifiers.cs
- Int32Collection.cs
- SaveFileDialog.cs
- Debugger.cs
- SchemaConstraints.cs
- GenerateScriptTypeAttribute.cs
- UnsafeNativeMethods.cs
- SkewTransform.cs
- SQLConvert.cs
- CompositeTypefaceMetrics.cs
- SurrogateSelector.cs
- GestureRecognitionResult.cs
- X509SecurityTokenProvider.cs
- TdsParserStaticMethods.cs
- CharKeyFrameCollection.cs
- ColumnResult.cs
- Control.cs
- BitmapVisualManager.cs
- Color.cs
- MouseGestureConverter.cs
- TypeUtil.cs
- UnsafeNativeMethods.cs
- ScriptResourceInfo.cs
- Bold.cs
- SaveFileDialog.cs
- MobileSysDescriptionAttribute.cs
- ViewManager.cs
- SqlOuterApplyReducer.cs
- TrackingRecord.cs
- Span.cs
- CalendarAutoFormatDialog.cs
- RuntimeArgumentHandle.cs
- PageAsyncTask.cs
- SelfSignedCertificate.cs
- XmlQualifiedName.cs
- SqlFunctionAttribute.cs
- HttpRequestTraceRecord.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- SqlWebEventProvider.cs
- ViewStateModeByIdAttribute.cs
- SafeProcessHandle.cs
- WindowsListViewGroupSubsetLink.cs
- XamlTypeMapper.cs
- FormClosingEvent.cs
- GradientBrush.cs
- CreateUserWizardStep.cs
- DebugView.cs
- ProjectionPruner.cs
- MessageDecoder.cs
- ToggleButton.cs
- DataSourceControl.cs
- CallSite.cs
- GregorianCalendar.cs
- StrongNameUtility.cs
- XmlTextEncoder.cs
- ErrorStyle.cs
- BaseCodePageEncoding.cs
- LinearKeyFrames.cs
- LabelDesigner.cs
- SocketElement.cs
- WindowsListViewItem.cs
- FrameworkContentElementAutomationPeer.cs
- SubstitutionResponseElement.cs
- ObjectComplexPropertyMapping.cs
- SymLanguageVendor.cs
- CmsInterop.cs
- WorkflowRuntimeServicesBehavior.cs
- SaveWorkflowCommand.cs
- DataGridToolTip.cs
- XmlAggregates.cs
- CopyOfAction.cs
- peersecurityelement.cs
- HWStack.cs