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
- SiteMapNodeItemEventArgs.cs
- PropertyItemInternal.cs
- TargetConverter.cs
- HelpInfo.cs
- FlagsAttribute.cs
- TypeConstant.cs
- VirtualizingStackPanel.cs
- DataGridState.cs
- PropertyPushdownHelper.cs
- MenuCommand.cs
- SplashScreen.cs
- DropShadowBitmapEffect.cs
- ContainerUtilities.cs
- TableCell.cs
- Assert.cs
- SoapSchemaMember.cs
- EntityDataSourceColumn.cs
- MaterializeFromAtom.cs
- BamlReader.cs
- GridViewAutoFormat.cs
- FtpRequestCacheValidator.cs
- FormViewModeEventArgs.cs
- XamlFilter.cs
- PageSetupDialog.cs
- KnownBoxes.cs
- SocketAddress.cs
- RegexCharClass.cs
- TemplateNameScope.cs
- GridToolTip.cs
- DiscoveryClient.cs
- DataControlPagerLinkButton.cs
- StrokeRenderer.cs
- XMLSchema.cs
- GeometryCollection.cs
- infer.cs
- StrongNameUtility.cs
- WebPartsPersonalization.cs
- OdbcConnection.cs
- ImportCatalogPart.cs
- AdRotator.cs
- PageParserFilter.cs
- TargetParameterCountException.cs
- CompositeDataBoundControl.cs
- CharacterMetrics.cs
- XmlCharType.cs
- Freezable.cs
- DockAndAnchorLayout.cs
- EncoderExceptionFallback.cs
- TreeSet.cs
- SiblingIterators.cs
- TemplateControlCodeDomTreeGenerator.cs
- HealthMonitoringSection.cs
- XsdDataContractImporter.cs
- CodeParameterDeclarationExpression.cs
- FloaterParaClient.cs
- RadialGradientBrush.cs
- TypedAsyncResult.cs
- DataContractSerializerOperationBehavior.cs
- TypeConverter.cs
- PropertyManager.cs
- DBSqlParserColumn.cs
- TokenBasedSet.cs
- ScrollBarAutomationPeer.cs
- MailWriter.cs
- SelectionManager.cs
- GeometryHitTestParameters.cs
- SrgsSemanticInterpretationTag.cs
- smtppermission.cs
- SafeEventLogWriteHandle.cs
- JournalEntryListConverter.cs
- ConvertEvent.cs
- AffineTransform3D.cs
- BaseResourcesBuildProvider.cs
- XMLDiffLoader.cs
- DynamicAttribute.cs
- Timeline.cs
- TrackingMemoryStreamFactory.cs
- CommentEmitter.cs
- AsyncOperationManager.cs
- WebPartConnectionsEventArgs.cs
- OutputCacheSettings.cs
- TokenBasedSet.cs
- ScrollChangedEventArgs.cs
- SessionIDManager.cs
- SortedDictionary.cs
- ListenerHandler.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ArrayHelper.cs
- StateRuntime.cs
- WpfXamlType.cs
- DataGridViewLinkColumn.cs
- XmlSerializerNamespaces.cs
- WebPartMovingEventArgs.cs
- ProfileSettingsCollection.cs
- RC2.cs
- FileUtil.cs
- ConstraintEnumerator.cs
- LockCookie.cs
- ParameterModifier.cs
- NativeMethodsCLR.cs