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
- HttpHandlerActionCollection.cs
- MonitorWrapper.cs
- UnsafeNativeMethods.cs
- ControlBindingsConverter.cs
- PositiveTimeSpanValidator.cs
- ConnectionManagementElementCollection.cs
- PerformanceCounterPermission.cs
- ZipIOCentralDirectoryBlock.cs
- UnmanagedMemoryStream.cs
- InstanceDataCollection.cs
- _CookieModule.cs
- AuthenticationModeHelper.cs
- PackagePart.cs
- HyperLinkStyle.cs
- ButtonBaseAutomationPeer.cs
- TextMarkerSource.cs
- DataViewManager.cs
- ObjectMaterializedEventArgs.cs
- DoubleAverageAggregationOperator.cs
- XmlIterators.cs
- UIElementCollection.cs
- Pair.cs
- TimeSpanConverter.cs
- EventDescriptorCollection.cs
- ConfigXmlElement.cs
- CertificateElement.cs
- Win32NamedPipes.cs
- StrokeIntersection.cs
- DrawListViewItemEventArgs.cs
- HtmlControlPersistable.cs
- ProtectedConfiguration.cs
- BaseAsyncResult.cs
- WindowManager.cs
- CDSCollectionETWBCLProvider.cs
- EntitySet.cs
- InvokeBase.cs
- CharUnicodeInfo.cs
- ReadOnlyDictionary.cs
- ScriptServiceAttribute.cs
- BindingFormattingDialog.cs
- WebEventCodes.cs
- DateTimeAutomationPeer.cs
- TypeInitializationException.cs
- DomainLiteralReader.cs
- DesignerLinkAdapter.cs
- PropertyItem.cs
- documentsequencetextpointer.cs
- ListViewItemCollectionEditor.cs
- DelegateSerializationHolder.cs
- HeaderedItemsControl.cs
- ActivityExecutorDelegateInfo.cs
- SplineQuaternionKeyFrame.cs
- ProviderBase.cs
- IconHelper.cs
- FormatterServices.cs
- DecoratedNameAttribute.cs
- DesignerDataParameter.cs
- ZipIOExtraField.cs
- RowToParametersTransformer.cs
- CriticalHandle.cs
- StreamInfo.cs
- ViewStateException.cs
- XmlSchemaIdentityConstraint.cs
- HttpPostLocalhostServerProtocol.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- KeyedQueue.cs
- DecodeHelper.cs
- Range.cs
- ReflectionTypeLoadException.cs
- RepeaterItemEventArgs.cs
- ScriptReferenceBase.cs
- HttpCapabilitiesSectionHandler.cs
- GCHandleCookieTable.cs
- SystemNetworkInterface.cs
- Image.cs
- XamlPoint3DCollectionSerializer.cs
- TraceRecord.cs
- NetworkInformationException.cs
- DataGridCaption.cs
- WebPartsPersonalization.cs
- ObjectItemCollection.cs
- EntityWrapperFactory.cs
- NativeMethods.cs
- HttpProtocolReflector.cs
- WeakHashtable.cs
- Rect3D.cs
- UnsafeNativeMethods.cs
- WhitespaceRuleLookup.cs
- basecomparevalidator.cs
- BitmapFrameEncode.cs
- Nodes.cs
- PageRequestManager.cs
- StaticContext.cs
- TextRange.cs
- DBSchemaTable.cs
- DiscreteKeyFrames.cs
- LazyTextWriterCreator.cs
- CodePageUtils.cs
- Queue.cs
- SecurityTokenInclusionMode.cs