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
- ForEachDesigner.xaml.cs
- SessionEndingCancelEventArgs.cs
- RegexWriter.cs
- ToolStrip.cs
- Compress.cs
- SamlAssertion.cs
- Attachment.cs
- AttachInfo.cs
- SortAction.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XamlPoint3DCollectionSerializer.cs
- DropShadowBitmapEffect.cs
- CodeBinaryOperatorExpression.cs
- WpfGeneratedKnownProperties.cs
- WebRequest.cs
- XmlDownloadManager.cs
- X509Extension.cs
- DataListCommandEventArgs.cs
- XmlValueConverter.cs
- OperationInfo.cs
- TrackingParameters.cs
- SendKeys.cs
- EntityDataSource.cs
- KeyedHashAlgorithm.cs
- DataReceivedEventArgs.cs
- EventLogPermission.cs
- TypeExtension.cs
- GatewayDefinition.cs
- EventRecordWrittenEventArgs.cs
- SR.cs
- TraceRecord.cs
- DocumentCollection.cs
- TextCompositionEventArgs.cs
- DbException.cs
- AxImporter.cs
- EntityDataSourceQueryBuilder.cs
- OracleNumber.cs
- BitmapEffectInputConnector.cs
- DragCompletedEventArgs.cs
- EventDescriptor.cs
- Attributes.cs
- GridEntry.cs
- AdPostCacheSubstitution.cs
- XmlMtomReader.cs
- ResumeStoryboard.cs
- SubtreeProcessor.cs
- KeyToListMap.cs
- WebServiceReceiveDesigner.cs
- _KerberosClient.cs
- TabControl.cs
- RectConverter.cs
- DBConcurrencyException.cs
- ComponentCommands.cs
- DesignSurfaceEvent.cs
- XmlC14NWriter.cs
- ProcessInfo.cs
- DbSource.cs
- Control.cs
- ForceCopyBuildProvider.cs
- WindowsListViewGroup.cs
- BindingContext.cs
- WebBrowserEvent.cs
- LongCountAggregationOperator.cs
- DiscoveryClientDocuments.cs
- XmlAtomicValue.cs
- TypeLoadException.cs
- TreeNodeSelectionProcessor.cs
- NonVisualControlAttribute.cs
- RelationshipConverter.cs
- SvcMapFile.cs
- SerializationInfoEnumerator.cs
- ClientSession.cs
- WebException.cs
- OLEDB_Util.cs
- FixedSchema.cs
- ToolboxItemCollection.cs
- StringFunctions.cs
- Converter.cs
- DelegatingTypeDescriptionProvider.cs
- WebErrorHandler.cs
- NavigationExpr.cs
- DataRelation.cs
- UnSafeCharBuffer.cs
- LinearQuaternionKeyFrame.cs
- XmlNamespaceManager.cs
- DefaultIfEmptyQueryOperator.cs
- ReferencedAssemblyResolver.cs
- PlatformNotSupportedException.cs
- ColorPalette.cs
- AnimationException.cs
- DecimalConstantAttribute.cs
- BooleanFunctions.cs
- FixedElement.cs
- BulletChrome.cs
- Normalization.cs
- GenerateTemporaryTargetAssembly.cs
- AttachedAnnotation.cs
- RecognitionResult.cs
- FontUnit.cs
- SoapFormatterSinks.cs