Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TextRangeBase.cs
- HMAC.cs
- ProfessionalColors.cs
- NameValueCollection.cs
- DesignerUtility.cs
- SoapExtensionTypeElement.cs
- XPathEmptyIterator.cs
- Camera.cs
- SignerInfo.cs
- TextBoxBase.cs
- DelayedRegex.cs
- ItemContainerGenerator.cs
- ProgressiveCrcCalculatingStream.cs
- Globals.cs
- StrongNamePublicKeyBlob.cs
- CutCopyPasteHelper.cs
- BackStopAuthenticationModule.cs
- KeyedHashAlgorithm.cs
- EntityContainerEmitter.cs
- MarkupProperty.cs
- unitconverter.cs
- BrowserCapabilitiesCodeGenerator.cs
- OdbcConnection.cs
- DependencyPropertyValueSerializer.cs
- Constraint.cs
- AlignmentXValidation.cs
- DATA_BLOB.cs
- ObjectQuery.cs
- AssemblyNameProxy.cs
- ServiceNotStartedException.cs
- StringBlob.cs
- PropertyInfoSet.cs
- RsaSecurityToken.cs
- ParagraphResult.cs
- ViewSimplifier.cs
- AQNBuilder.cs
- TypeLibConverter.cs
- MemberCollection.cs
- PreviewKeyDownEventArgs.cs
- SoapAttributeAttribute.cs
- ColumnReorderedEventArgs.cs
- BufferedReadStream.cs
- GacUtil.cs
- IntSecurity.cs
- StylusButtonEventArgs.cs
- SpeakInfo.cs
- Matrix3D.cs
- ComboBox.cs
- LayoutTableCell.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- FastPropertyAccessor.cs
- IsolatedStorageFilePermission.cs
- ScrollableControlDesigner.cs
- PrePostDescendentsWalker.cs
- XmlProcessingInstruction.cs
- InputScopeNameConverter.cs
- CodeDirectoryCompiler.cs
- StreamGeometry.cs
- DataGridItem.cs
- PointLightBase.cs
- TextTrailingCharacterEllipsis.cs
- Invariant.cs
- WebPartsPersonalizationAuthorization.cs
- SignatureDescription.cs
- UriWriter.cs
- DictionaryChange.cs
- LinearGradientBrush.cs
- TypedReference.cs
- TokenizerHelper.cs
- Canonicalizers.cs
- ObjectQueryExecutionPlan.cs
- ObjectManager.cs
- CellConstantDomain.cs
- TextEditorThreadLocalStore.cs
- StateWorkerRequest.cs
- XamlRtfConverter.cs
- Quaternion.cs
- AdapterDictionary.cs
- MulticastOption.cs
- WindowsStartMenu.cs
- Int16.cs
- RotateTransform.cs
- RemotingServices.cs
- DurationConverter.cs
- CompilerErrorCollection.cs
- CodeDOMUtility.cs
- WebPartsPersonalizationAuthorization.cs
- SourceFileBuildProvider.cs
- ProfileSettings.cs
- ObjectMaterializedEventArgs.cs
- ViewManager.cs
- ActivatedMessageQueue.cs
- IPEndPointCollection.cs
- AsyncOperation.cs
- TextSelectionHighlightLayer.cs
- AuthenticatedStream.cs
- HostingEnvironmentException.cs
- DbProviderFactoriesConfigurationHandler.cs
- AVElementHelper.cs
- SpecialFolderEnumConverter.cs