Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;} } } }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
- ErrorInfoXmlDocument.cs
- TiffBitmapEncoder.cs
- SqlProviderUtilities.cs
- UpdatePanelTriggerCollection.cs
- XmlValidatingReader.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CustomAttributeBuilder.cs
- ToolStripGripRenderEventArgs.cs
- DynamicUpdateCommand.cs
- ByteConverter.cs
- EntityDataSourceValidationException.cs
- Identity.cs
- LambdaCompiler.Lambda.cs
- DataGridViewControlCollection.cs
- MainMenu.cs
- TreeNodeStyle.cs
- ErrorInfoXmlDocument.cs
- MenuCommandService.cs
- RtfControls.cs
- XmlComment.cs
- EditorPart.cs
- InfoCardTrace.cs
- WebPartCatalogCloseVerb.cs
- HandlerElement.cs
- ColorMap.cs
- TextServicesCompartmentContext.cs
- Substitution.cs
- mediaeventargs.cs
- SchemaElementDecl.cs
- ObjectCacheSettings.cs
- MemberInfoSerializationHolder.cs
- StyleXamlParser.cs
- X509Certificate.cs
- CodePageUtils.cs
- DynamicValueConverter.cs
- DataGridViewRowCancelEventArgs.cs
- ComponentDispatcherThread.cs
- ClientCultureInfo.cs
- ListBoxItemAutomationPeer.cs
- XmlElementAttribute.cs
- ListView.cs
- DropSourceBehavior.cs
- DirectionalLight.cs
- DetailsViewUpdateEventArgs.cs
- WorkflowRuntimeSection.cs
- UnmanagedBitmapWrapper.cs
- _UncName.cs
- XmlWriterSettings.cs
- AnimationClock.cs
- DispatchWrapper.cs
- RtfToken.cs
- DynamicValueConverter.cs
- NumberFormatter.cs
- CodeParameterDeclarationExpression.cs
- HttpRequestCacheValidator.cs
- EmissiveMaterial.cs
- NullToBooleanConverter.cs
- TypeReference.cs
- BamlWriter.cs
- SetterTriggerConditionValueConverter.cs
- NumberAction.cs
- StandardToolWindows.cs
- XamlClipboardData.cs
- LayoutEditorPart.cs
- DynamicActivityProperty.cs
- EdmSchemaAttribute.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ObjectDataSourceStatusEventArgs.cs
- InfiniteIntConverter.cs
- ToolStripLabel.cs
- EventProxy.cs
- SchemaDeclBase.cs
- XmlObjectSerializerReadContextComplexJson.cs
- WebConvert.cs
- MatrixUtil.cs
- GridViewPageEventArgs.cs
- MulticastNotSupportedException.cs
- X509IssuerSerialKeyIdentifierClause.cs
- Int32RectValueSerializer.cs
- DefaultAuthorizationContext.cs
- InvalidCastException.cs
- SessionEndingCancelEventArgs.cs
- fixedPageContentExtractor.cs
- BamlLocalizabilityResolver.cs
- Point3DValueSerializer.cs
- WhereQueryOperator.cs
- ExtensibleClassFactory.cs
- FilteredDataSetHelper.cs
- SqlVisitor.cs
- ViewLoader.cs
- TdsParserSessionPool.cs
- CodePageEncoding.cs
- VersionPair.cs
- DescendantBaseQuery.cs
- GridViewCommandEventArgs.cs
- Compilation.cs
- WindowsFormsDesignerOptionService.cs
- RequestQueryParser.cs
- RealizationDrawingContextWalker.cs
- ClipboardData.cs