Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ValidatorCollection.cs / 1305376 / ValidatorCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System.Runtime.InteropServices; using System.Collections; ////// public sealed class ValidatorCollection : ICollection { private ArrayList data; ///Exposes a /// read-only array of ////// references. /// public ValidatorCollection() { data = new ArrayList(); } ///Initializes a new instance of the ///class. /// public int Count { get { return data.Count; } } ///Indicates the number of references in the collection. /// This property is read-only. ////// public IValidator this[int index] { get { return(IValidator) data[index]; } } ///Indicates the validator at the specified index. This /// property is read-only. ////// public void Add(IValidator validator) { data.Add(validator); } ///Adds the specified validator to the collection. ////// public bool Contains(IValidator validator) { return data.Contains(validator); } ///Returns whether the specified validator exists in the collection. ////// public void Remove(IValidator validator) { data.Remove(validator); } ///Removes the specified validator from the collection. ////// public IEnumerator GetEnumerator() { return data.GetEnumerator(); } ///Gets an enumerator that iterates over the collection. ////// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies a validator to the specified collection and location. ////// public Object SyncRoot { get { return this;} } ///Indicates an object that can be used to synchronize the /// ///. /// This property is read-only. /// public bool IsReadOnly { get { return false;} } ///Indicates whether the ///is read-only. This property is /// read-only. /// public bool IsSynchronized { get { return false;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Indicates whether the ///is synchronized /// (thread-safe). This property is read-only.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SectionXmlInfo.cs
- DataServiceHost.cs
- ZipPackagePart.cs
- XmlReturnWriter.cs
- BamlLocalizer.cs
- ProcessModelInfo.cs
- StateInitializationDesigner.cs
- embossbitmapeffect.cs
- ApplicationServicesHostFactory.cs
- PackageDigitalSignature.cs
- DocumentXmlWriter.cs
- MetaDataInfo.cs
- MenuItemBinding.cs
- DirectoryObjectSecurity.cs
- TranslateTransform3D.cs
- InternalMappingException.cs
- Pkcs9Attribute.cs
- ProfessionalColorTable.cs
- OleDbFactory.cs
- PropertyChangeTracker.cs
- DataGridViewAccessibleObject.cs
- Queue.cs
- FuncTypeConverter.cs
- CommonObjectSecurity.cs
- TextBox.cs
- indexingfiltermarshaler.cs
- _NetRes.cs
- FixedSOMTable.cs
- fixedPageContentExtractor.cs
- FixedDocumentPaginator.cs
- ToolStripItemClickedEventArgs.cs
- QueryPageSettingsEventArgs.cs
- CubicEase.cs
- SqlDependencyUtils.cs
- FormsAuthenticationUserCollection.cs
- EnumUnknown.cs
- RuleRefElement.cs
- ProviderSettingsCollection.cs
- SocketPermission.cs
- SystemColorTracker.cs
- EtwTrackingParticipant.cs
- NativeBuffer.cs
- ScrollProperties.cs
- ThreadStaticAttribute.cs
- RuntimeHandles.cs
- ValidatingCollection.cs
- ColumnBinding.cs
- PageBreakRecord.cs
- ConstructorBuilder.cs
- IntegerValidatorAttribute.cs
- ClientScriptManager.cs
- WsdlWriter.cs
- MessageEventSubscriptionService.cs
- SoapReflectionImporter.cs
- Padding.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ButtonStandardAdapter.cs
- DataColumnCollection.cs
- WebSysDisplayNameAttribute.cs
- FrameworkTemplate.cs
- HttpRequest.cs
- ItemsChangedEventArgs.cs
- WindowsAuthenticationEventArgs.cs
- Label.cs
- PhysicalAddress.cs
- TextRunProperties.cs
- SqlInternalConnection.cs
- BooleanAnimationBase.cs
- SrgsRule.cs
- PersonalizationStateInfo.cs
- AlgoModule.cs
- CssClassPropertyAttribute.cs
- UriExt.cs
- XmlObjectSerializerWriteContextComplex.cs
- UpDownEvent.cs
- SymLanguageVendor.cs
- DispatcherObject.cs
- HttpCookiesSection.cs
- Helpers.cs
- SqlCacheDependencySection.cs
- FontStyles.cs
- WebZone.cs
- BufferedWebEventProvider.cs
- DesignerDataTableBase.cs
- NodeLabelEditEvent.cs
- ImageBrush.cs
- ChannelDispatcherBase.cs
- GridViewRow.cs
- AuthenticationManager.cs
- RenderingEventArgs.cs
- Path.cs
- XmlObjectSerializerWriteContext.cs
- Compiler.cs
- PolicyLevel.cs
- ContextConfiguration.cs
- MediaPlayerState.cs
- DataGridViewCellLinkedList.cs
- Timer.cs
- RectKeyFrameCollection.cs
- CalendarButton.cs