Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. // 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
- ScriptBehaviorDescriptor.cs
- HtmlInputRadioButton.cs
- login.cs
- Speller.cs
- FormatVersion.cs
- DataColumnCollection.cs
- ScheduleChanges.cs
- XPathChildIterator.cs
- HttpCachePolicyElement.cs
- VoiceChangeEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- Command.cs
- EastAsianLunisolarCalendar.cs
- EnlistmentState.cs
- XmlQueryCardinality.cs
- AssociationSetEnd.cs
- StringDictionary.cs
- AsyncResult.cs
- XmlBoundElement.cs
- tooltip.cs
- NetworkInterface.cs
- PagedControl.cs
- CheckedPointers.cs
- XslNumber.cs
- ClientRuntimeConfig.cs
- Int32KeyFrameCollection.cs
- sqlser.cs
- EndEvent.cs
- Rotation3D.cs
- EnumerableRowCollection.cs
- PermissionToken.cs
- Ops.cs
- ConnectivityStatus.cs
- WebDescriptionAttribute.cs
- HttpFormatExtensions.cs
- DataViewManager.cs
- WindowsIdentity.cs
- UnhandledExceptionEventArgs.cs
- Int16KeyFrameCollection.cs
- ProfileService.cs
- ListDictionary.cs
- MailWebEventProvider.cs
- DefaultSection.cs
- HtmlElementEventArgs.cs
- DirectoryObjectSecurity.cs
- WebPartAddingEventArgs.cs
- BackEase.cs
- XmlSerializerNamespaces.cs
- DataKey.cs
- ScrollableControl.cs
- CustomSignedXml.cs
- NativeRecognizer.cs
- ProgressBarHighlightConverter.cs
- SettingsAttributeDictionary.cs
- SingleAnimationUsingKeyFrames.cs
- VectorCollectionConverter.cs
- ButtonFieldBase.cs
- TextServicesManager.cs
- DataGridViewRowsRemovedEventArgs.cs
- ProxyElement.cs
- SqlUtils.cs
- StylusCaptureWithinProperty.cs
- GPPOINTF.cs
- TextRangeAdaptor.cs
- InfiniteIntConverter.cs
- SqlRowUpdatingEvent.cs
- IconBitmapDecoder.cs
- ServiceSecurityAuditElement.cs
- SiteMapNodeItem.cs
- MultiByteCodec.cs
- SmtpFailedRecipientsException.cs
- ClientEventManager.cs
- Resources.Designer.cs
- ZipArchive.cs
- HttpCookiesSection.cs
- TypeSource.cs
- LayoutManager.cs
- Button.cs
- SoapCodeExporter.cs
- SessionStateSection.cs
- ReadOnlyNameValueCollection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- MonitorWrapper.cs
- GeneralTransform.cs
- HebrewCalendar.cs
- ConfigXmlText.cs
- Stroke2.cs
- PartBasedPackageProperties.cs
- TextCompositionManager.cs
- GACIdentityPermission.cs
- ModelTreeManager.cs
- BamlLocalizableResourceKey.cs
- TableLayoutColumnStyleCollection.cs
- TextViewDesigner.cs
- DBSqlParserTableCollection.cs
- VirtualizingStackPanel.cs
- JumpItem.cs
- ConversionContext.cs
- WebPartConnectionsConnectVerb.cs
- CodeNamespace.cs