Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //Creates an enumerator for the ///used to iterate /// through the collection. // 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.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
- NativeMethods.cs
- RadioButtonList.cs
- Int32RectConverter.cs
- BuildProvidersCompiler.cs
- PixelShader.cs
- BinaryMessageFormatter.cs
- OptimizedTemplateContentHelper.cs
- LazyTextWriterCreator.cs
- MenuItem.cs
- AssemblyAssociatedContentFileAttribute.cs
- SqlDependencyListener.cs
- HeaderPanel.cs
- StrokeNode.cs
- ExternalException.cs
- Vector3DCollectionConverter.cs
- SortAction.cs
- FormatConvertedBitmap.cs
- CacheDependency.cs
- MatrixUtil.cs
- ViewgenContext.cs
- ByteAnimation.cs
- ComponentChangedEvent.cs
- Utilities.cs
- AutoGeneratedField.cs
- DispatcherBuilder.cs
- SymbolType.cs
- ScaleTransform.cs
- ZipFileInfo.cs
- Crc32.cs
- StringKeyFrameCollection.cs
- LinkedList.cs
- LogExtentCollection.cs
- CompositeDataBoundControl.cs
- HtmlTextViewAdapter.cs
- sapiproxy.cs
- sqlser.cs
- RegexNode.cs
- ScriptModule.cs
- StyleBamlRecordReader.cs
- SimplePropertyEntry.cs
- AliasGenerator.cs
- QueryAsyncResult.cs
- EventLog.cs
- PreDigestedSignedInfo.cs
- ExpressionSelection.cs
- AddingNewEventArgs.cs
- WindowsTokenRoleProvider.cs
- XmlProcessingInstruction.cs
- HostedImpersonationContext.cs
- Page.cs
- SiteMapNode.cs
- SimpleType.cs
- XmlTypeMapping.cs
- DataKey.cs
- HtmlElementErrorEventArgs.cs
- MeasureData.cs
- CodeObject.cs
- DelegatingMessage.cs
- XmlTextReaderImplHelpers.cs
- ProfileSection.cs
- ResourceManager.cs
- ServiceProviders.cs
- WinOEToolBoxItem.cs
- TemplateParser.cs
- BitVec.cs
- CompilerResults.cs
- AnnotationResource.cs
- Visual.cs
- ISO2022Encoding.cs
- RefreshEventArgs.cs
- DataGridColumnHeader.cs
- SystemUnicastIPAddressInformation.cs
- AssemblyBuilder.cs
- OdbcConnectionFactory.cs
- PageEventArgs.cs
- DrawingVisualDrawingContext.cs
- XPathNavigatorReader.cs
- InfoCardSchemas.cs
- WorkflowQueueInfo.cs
- ContainerFilterService.cs
- ComPlusThreadInitializer.cs
- TextBox.cs
- SqlDataSourceCustomCommandPanel.cs
- EntityCommandDefinition.cs
- Package.cs
- NativeMethods.cs
- TextServicesLoader.cs
- CalendarAutoFormat.cs
- MethodToken.cs
- ImportCatalogPart.cs
- XmlAttributeCache.cs
- DataBindingCollectionConverter.cs
- ConfigurationElement.cs
- FieldNameLookup.cs
- PickDesigner.xaml.cs
- Codec.cs
- DependencyPropertyDescriptor.cs
- BitmapSizeOptions.cs
- OleDbErrorCollection.cs
- WebEventTraceProvider.cs