Code:
/ DotNET / DotNET / 8.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
- DesignerWithHeader.cs
- ComponentResourceManager.cs
- UriParserTemplates.cs
- HtmlShim.cs
- log.cs
- HttpsChannelListener.cs
- Encoder.cs
- NavigateEvent.cs
- CorrelationTokenTypeConvertor.cs
- RequestSecurityTokenSerializer.cs
- NativeConfigurationLoader.cs
- LocalValueEnumerator.cs
- FormatConvertedBitmap.cs
- ToggleButton.cs
- MatrixKeyFrameCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- ObjectDataSourceFilteringEventArgs.cs
- EditorZoneBase.cs
- PerformanceCountersBase.cs
- path.cs
- CodeRemoveEventStatement.cs
- Match.cs
- XmlSyndicationContent.cs
- OperandQuery.cs
- Pair.cs
- ProcessModuleDesigner.cs
- XmlCustomFormatter.cs
- PropertyChangingEventArgs.cs
- ProcessThread.cs
- Panel.cs
- PointValueSerializer.cs
- Event.cs
- DrawingGroupDrawingContext.cs
- TextServicesCompartmentEventSink.cs
- WmiInstallComponent.cs
- ServicePointManager.cs
- RadioButtonFlatAdapter.cs
- WebConfigurationManager.cs
- ControlValuePropertyAttribute.cs
- ClassicBorderDecorator.cs
- ISAPIApplicationHost.cs
- VectorCollectionConverter.cs
- LinearGradientBrush.cs
- SimplePropertyEntry.cs
- ClaimTypes.cs
- SetStoryboardSpeedRatio.cs
- XmlUtil.cs
- Table.cs
- EdgeProfileValidation.cs
- OneOf.cs
- TextRenderer.cs
- PolyQuadraticBezierSegment.cs
- DependencyObject.cs
- SimpleBitVector32.cs
- WhitespaceRule.cs
- PropertyRef.cs
- CodeFieldReferenceExpression.cs
- GridViewCancelEditEventArgs.cs
- SqlCachedBuffer.cs
- FormattedText.cs
- ColorConverter.cs
- PageStatePersister.cs
- SystemInformation.cs
- HttpModulesSection.cs
- PointHitTestResult.cs
- ConnectionPoolManager.cs
- TableItemPatternIdentifiers.cs
- StandardToolWindows.cs
- TypeSystem.cs
- ComEventsSink.cs
- CursorInteropHelper.cs
- DataContractSerializerSection.cs
- UnsafeNetInfoNativeMethods.cs
- WebPartCatalogAddVerb.cs
- ManipulationLogic.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- LinqDataSourceHelper.cs
- ContentElementAutomationPeer.cs
- Message.cs
- LogReservationCollection.cs
- ProgressChangedEventArgs.cs
- UInt32.cs
- UnhandledExceptionEventArgs.cs
- InputDevice.cs
- DataReaderContainer.cs
- ProcessHost.cs
- DbProviderFactory.cs
- DataComponentGenerator.cs
- RenameRuleObjectDialog.cs
- HebrewNumber.cs
- QuaternionRotation3D.cs
- CodeExporter.cs
- SslSecurityTokenParameters.cs
- TdsParser.cs
- _Rfc2616CacheValidators.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlUrlResolver.cs
- HtmlProps.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- COM2IDispatchConverter.cs