Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //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.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
- PropagatorResult.cs
- TransportContext.cs
- GeometryDrawing.cs
- MemoryFailPoint.cs
- PageParser.cs
- SoapTypeAttribute.cs
- SerializationFieldInfo.cs
- PrintDocument.cs
- IOThreadTimer.cs
- LoopExpression.cs
- XmlDesignerDataSourceView.cs
- FtpRequestCacheValidator.cs
- Transaction.cs
- DiagnosticsConfiguration.cs
- Vector3DCollectionConverter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- StringSource.cs
- ConfigDefinitionUpdates.cs
- DataGridHyperlinkColumn.cs
- ToolStripScrollButton.cs
- ImportCatalogPart.cs
- OleDbMetaDataFactory.cs
- unsafenativemethodstextservices.cs
- QilFactory.cs
- WindowsPen.cs
- storagemappingitemcollection.viewdictionary.cs
- DBParameter.cs
- Effect.cs
- PhysicalFontFamily.cs
- ViewGenerator.cs
- SplashScreenNativeMethods.cs
- KeyTimeConverter.cs
- SerializationAttributes.cs
- Int16KeyFrameCollection.cs
- XmlSchemaGroup.cs
- FrugalList.cs
- FilteredXmlReader.cs
- HtmlTextArea.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- TypePropertyEditor.cs
- KeyboardEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- VisualTreeHelper.cs
- ReadOnlyNameValueCollection.cs
- SplitterCancelEvent.cs
- GridViewColumnHeaderAutomationPeer.cs
- ServiceProviders.cs
- PrintingPermissionAttribute.cs
- streamingZipPartStream.cs
- CachedTypeface.cs
- TextTabProperties.cs
- Win32MouseDevice.cs
- RSAOAEPKeyExchangeFormatter.cs
- CorruptingExceptionCommon.cs
- webeventbuffer.cs
- XmlCDATASection.cs
- FilteredReadOnlyMetadataCollection.cs
- WorkflowServiceNamespace.cs
- StaticExtension.cs
- ManagedIStream.cs
- WorkflowDefinitionContext.cs
- SingleStorage.cs
- SingleSelectRootGridEntry.cs
- PackagingUtilities.cs
- DataGridViewRowEventArgs.cs
- PolicyLevel.cs
- RSAPKCS1SignatureFormatter.cs
- CharEntityEncoderFallback.cs
- EntityClientCacheEntry.cs
- DatasetMethodGenerator.cs
- SpinLock.cs
- Module.cs
- IconConverter.cs
- FileLevelControlBuilderAttribute.cs
- EntityReference.cs
- SliderAutomationPeer.cs
- SoapEnvelopeProcessingElement.cs
- BooleanFunctions.cs
- ThemeDirectoryCompiler.cs
- MouseGesture.cs
- PenLineCapValidation.cs
- TablePattern.cs
- TextTreeFixupNode.cs
- ExpressionCopier.cs
- DataGridViewLinkColumn.cs
- _RequestLifetimeSetter.cs
- _PooledStream.cs
- PreservationFileReader.cs
- WebPartCatalogCloseVerb.cs
- LocalizableAttribute.cs
- BooleanSwitch.cs
- ETagAttribute.cs
- AccessText.cs
- DataPagerField.cs
- ADMembershipUser.cs
- SymmetricAlgorithm.cs
- HierarchicalDataBoundControlAdapter.cs
- SymbolPair.cs
- CurrentChangingEventManager.cs
- MLangCodePageEncoding.cs