Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ValidatorCollection.cs / 1305376 / ValidatorCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI {
using System.Runtime.InteropServices;
using System.Collections;
///
/// Exposes a
/// read-only array of
/// references.
///
public sealed class ValidatorCollection : ICollection {
private ArrayList data;
///
/// Initializes a new instance of the class.
///
public ValidatorCollection() {
data = new ArrayList();
}
///
/// Indicates the number of references in the collection.
/// This property is read-only.
///
public int Count {
get {
return data.Count;
}
}
///
/// Indicates the validator at the specified index. This
/// property is read-only.
///
public IValidator this[int index] {
get {
return(IValidator) data[index];
}
}
///
/// Adds the specified validator to the collection.
///
public void Add(IValidator validator) {
data.Add(validator);
}
///
/// Returns whether the specified validator exists in the collection.
///
public bool Contains(IValidator validator) {
return data.Contains(validator);
}
///
/// Removes the specified validator from the collection.
///
public void Remove(IValidator validator) {
data.Remove(validator);
}
///
/// Gets an enumerator that iterates over the collection.
///
public IEnumerator GetEnumerator() {
return data.GetEnumerator();
}
///
/// Copies a validator to the specified collection and location.
///
public void CopyTo(Array array, int index) {
for (IEnumerator e = this.GetEnumerator(); e.MoveNext();)
array.SetValue(e.Current, index++);
}
///
/// Indicates an object that can be used to synchronize the
/// .
/// This property is read-only.
///
public Object SyncRoot {
get { return this;}
}
///
/// Indicates whether the is read-only. This property is
/// read-only.
///
public bool IsReadOnly {
get { return false;}
}
///
/// Indicates whether the is synchronized
/// (thread-safe). This property is read-only.
///
public bool IsSynchronized {
get { return false;}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CultureMapper.cs
- ProxyWebPartManager.cs
- XmlSchemaAll.cs
- TriggerActionCollection.cs
- DynamicHyperLink.cs
- XmlSchemaAttributeGroup.cs
- SqlDataSourceSummaryPanel.cs
- DataGridItemEventArgs.cs
- SocketInformation.cs
- UnaryOperationBinder.cs
- DataObjectPastingEventArgs.cs
- SuppressIldasmAttribute.cs
- UshortList2.cs
- BasicHttpMessageSecurityElement.cs
- WorkflowDesigner.cs
- Error.cs
- WebPartCatalogAddVerb.cs
- ProxyWebPartConnectionCollection.cs
- ConfigurationSchemaErrors.cs
- ContainerControl.cs
- CalendarTable.cs
- TrimSurroundingWhitespaceAttribute.cs
- SizeKeyFrameCollection.cs
- TaiwanLunisolarCalendar.cs
- DrawingContext.cs
- SHA256.cs
- UnaryOperationBinder.cs
- shaper.cs
- ExtenderProvidedPropertyAttribute.cs
- HandlerMappingMemo.cs
- documentsequencetextcontainer.cs
- TextRangeBase.cs
- FacetDescription.cs
- TypeTypeConverter.cs
- StaticFileHandler.cs
- XmlDesigner.cs
- WindowsToolbarItemAsMenuItem.cs
- XPathDescendantIterator.cs
- CodeConstructor.cs
- SqlBinder.cs
- PropertyFilterAttribute.cs
- AttributeEmitter.cs
- NativeWindow.cs
- PagerSettings.cs
- CapabilitiesState.cs
- PrintPreviewControl.cs
- IntSecurity.cs
- SpellerHighlightLayer.cs
- Vector3DValueSerializer.cs
- WebServiceFault.cs
- Unit.cs
- PerspectiveCamera.cs
- TargetControlTypeAttribute.cs
- ObjectReaderCompiler.cs
- Pkcs7Signer.cs
- C14NUtil.cs
- CodePageUtils.cs
- WindowsListView.cs
- DropShadowBitmapEffect.cs
- DecoderFallbackWithFailureFlag.cs
- StrokeCollection.cs
- DataSourceListEditor.cs
- ObjectMaterializedEventArgs.cs
- InvalidProgramException.cs
- PrivilegedConfigurationManager.cs
- ListSourceHelper.cs
- CollectionViewGroupInternal.cs
- LabelEditEvent.cs
- SID.cs
- DataControlCommands.cs
- GlyphingCache.cs
- ImageCodecInfoPrivate.cs
- DataGridViewRowsAddedEventArgs.cs
- RichTextBoxConstants.cs
- PathFigureCollectionConverter.cs
- TableRow.cs
- MorphHelpers.cs
- ComPlusDiagnosticTraceSchemas.cs
- _emptywebproxy.cs
- UserNameSecurityTokenAuthenticator.cs
- ArgIterator.cs
- DataServiceRequest.cs
- StateBag.cs
- DrawListViewColumnHeaderEventArgs.cs
- SourceFilter.cs
- TreeNodeConverter.cs
- CreationContext.cs
- ObjectPersistData.cs
- ObjectViewEntityCollectionData.cs
- IdentifierService.cs
- RegexMatch.cs
- WebServiceHostFactory.cs
- LinearGradientBrush.cs
- PromptBuilder.cs
- SimpleApplicationHost.cs
- ColumnResizeAdorner.cs
- formatstringdialog.cs
- ComponentResourceKeyConverter.cs
- ApplicationDirectory.cs
- MailSettingsSection.cs