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
- Token.cs
- MetadataStore.cs
- ScrollBarRenderer.cs
- HMACSHA384.cs
- TempFiles.cs
- Pair.cs
- SetterBaseCollection.cs
- DbProviderServices.cs
- sqlpipe.cs
- TableCellCollection.cs
- TemplatedAdorner.cs
- NonceCache.cs
- WindowsTokenRoleProvider.cs
- SmtpSection.cs
- ImageConverter.cs
- xsdvalidator.cs
- ScriptingProfileServiceSection.cs
- EventProxy.cs
- SoapReflectionImporter.cs
- EntityContainerRelationshipSet.cs
- MsmqIntegrationInputMessage.cs
- BindableAttribute.cs
- GradientSpreadMethodValidation.cs
- TextServicesCompartment.cs
- SqlTypesSchemaImporter.cs
- DESCryptoServiceProvider.cs
- GlobalAllocSafeHandle.cs
- CmsInterop.cs
- FieldAccessException.cs
- AspNetSynchronizationContext.cs
- CursorConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ImageBrush.cs
- DataGridViewTextBoxColumn.cs
- TextSchema.cs
- ScrollBarAutomationPeer.cs
- DataGridState.cs
- PackWebRequest.cs
- StubHelpers.cs
- StrokeRenderer.cs
- WaitHandle.cs
- CommunicationObject.cs
- WizardPanelChangingEventArgs.cs
- HGlobalSafeHandle.cs
- PropertyEmitter.cs
- RoleBoolean.cs
- Point3D.cs
- TextContainerHelper.cs
- ProcessInputEventArgs.cs
- DataFormats.cs
- HandledEventArgs.cs
- X509InitiatorCertificateClientElement.cs
- OleDbStruct.cs
- Console.cs
- ToolboxBitmapAttribute.cs
- AsyncContentLoadedEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- TimelineClockCollection.cs
- XhtmlMobileTextWriter.cs
- BCLDebug.cs
- MetaModel.cs
- TerminatorSinks.cs
- MetadataSerializer.cs
- EntityWithKeyStrategy.cs
- Image.cs
- DataColumnPropertyDescriptor.cs
- SerializableAttribute.cs
- ServiceModelConfigurationElementCollection.cs
- BaseTreeIterator.cs
- IisTraceWebEventProvider.cs
- ProtocolsConfiguration.cs
- X509CertificateCollection.cs
- GlyphCache.cs
- ObjectDataSourceEventArgs.cs
- IWorkflowDebuggerService.cs
- MessageEncodingBindingElement.cs
- TextProperties.cs
- MetadataPropertyAttribute.cs
- ServiceReference.cs
- CharStorage.cs
- AppDomainAttributes.cs
- HyperLinkField.cs
- BlobPersonalizationState.cs
- EntityDataSourceWizardForm.cs
- PropertyValue.cs
- ObjectCacheHost.cs
- CapabilitiesRule.cs
- DesignerActionItemCollection.cs
- ConstrainedDataObject.cs
- MarginCollapsingState.cs
- RepeatBehaviorConverter.cs
- SystemBrushes.cs
- ServerIdentity.cs
- SafeFileMappingHandle.cs
- EntityDescriptor.cs
- IgnoreSection.cs
- ReachUIElementCollectionSerializerAsync.cs
- DataGridRowEventArgs.cs
- QueryResponse.cs
- ClientSideProviderDescription.cs