Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / ValidatorCollection.cs / 1 / ValidatorCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System.Runtime.InteropServices; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- PlatformNotSupportedException.cs
- IsolatedStorageFileStream.cs
- ExpandoObject.cs
- CatalogPart.cs
- AxHost.cs
- DbParameterCollectionHelper.cs
- RelatedView.cs
- Image.cs
- FormsAuthenticationTicket.cs
- NotifyIcon.cs
- ForceCopyBuildProvider.cs
- XmlQueryTypeFactory.cs
- TransformationRules.cs
- arabicshape.cs
- BufferedStream.cs
- Int16Converter.cs
- TreeNodeMouseHoverEvent.cs
- XmlSchemaElement.cs
- RootProfilePropertySettingsCollection.cs
- DataGridViewCellValidatingEventArgs.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ComponentManagerBroker.cs
- OdbcConnectionPoolProviderInfo.cs
- StaticExtension.cs
- HttpHandlerActionCollection.cs
- SectionInput.cs
- SqlInternalConnectionSmi.cs
- BitmapCodecInfo.cs
- IntranetCredentialPolicy.cs
- ResponseStream.cs
- Mutex.cs
- TreeNodeStyle.cs
- AsyncResult.cs
- LoginView.cs
- CodeSubDirectory.cs
- BasicKeyConstraint.cs
- TableLayoutCellPaintEventArgs.cs
- LocalizedNameDescriptionPair.cs
- Parameter.cs
- EntryPointNotFoundException.cs
- unitconverter.cs
- Html32TextWriter.cs
- MetadataCache.cs
- Debug.cs
- PrintPreviewDialog.cs
- Operand.cs
- InkCanvasFeedbackAdorner.cs
- QilTernary.cs
- TransformCollection.cs
- VisualStateManager.cs
- RtfToXamlReader.cs
- MessageUtil.cs
- SingleObjectCollection.cs
- Expander.cs
- ComponentResourceManager.cs
- StructuredType.cs
- QilReplaceVisitor.cs
- CompoundFileIOPermission.cs
- ChangeToolStripParentVerb.cs
- AggregationMinMaxHelpers.cs
- ZipPackage.cs
- WebProxyScriptElement.cs
- NavigationPropertySingletonExpression.cs
- CodeLabeledStatement.cs
- WindowsListViewGroupHelper.cs
- CrossSiteScriptingValidation.cs
- MultipartContentParser.cs
- HttpCachePolicy.cs
- TextDecorationCollection.cs
- TextDecorationCollectionConverter.cs
- TabControlEvent.cs
- PasswordRecoveryAutoFormat.cs
- AtomEntry.cs
- VScrollBar.cs
- VScrollProperties.cs
- Pen.cs
- SmiTypedGetterSetter.cs
- CodeChecksumPragma.cs
- EnumBuilder.cs
- EventLogPermissionEntry.cs
- SystemIPv6InterfaceProperties.cs
- XmlNodeList.cs
- StreamGeometry.cs
- SoapReflectionImporter.cs
- DataTable.cs
- TokenizerHelper.cs
- Rotation3D.cs
- AudioSignalProblemOccurredEventArgs.cs
- InternalResources.cs
- ErrorFormatterPage.cs
- CuspData.cs
- SmiEventStream.cs
- ParserHooks.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ThemeInfoAttribute.cs
- TransportationConfigurationTypeInstallComponent.cs
- DecimalConverter.cs
- StoragePropertyMapping.cs
- WebSysDescriptionAttribute.cs
- ListViewGroup.cs