Code:
/ 4.0 / 4.0 / 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; ////// 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; ////// 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
- SplitContainerDesigner.cs
- GC.cs
- NonVisualControlAttribute.cs
- ByteStorage.cs
- DateTimeSerializationSection.cs
- XmlLoader.cs
- PropertyInformation.cs
- Underline.cs
- AxDesigner.cs
- ControlCollection.cs
- MaskedTextProvider.cs
- Int32.cs
- ResourceProviderFactory.cs
- Transform.cs
- FileUtil.cs
- SequenceFullException.cs
- SingleKeyFrameCollection.cs
- CompoundFileStorageReference.cs
- TypeDependencyAttribute.cs
- TextServicesContext.cs
- BufferCache.cs
- MiniCustomAttributeInfo.cs
- Soap12FormatExtensions.cs
- VerificationException.cs
- RawStylusInputReport.cs
- Win32PrintDialog.cs
- MarkedHighlightComponent.cs
- CTreeGenerator.cs
- TextRunCacheImp.cs
- RefExpr.cs
- QualifierSet.cs
- IsolatedStorageFileStream.cs
- SequentialOutput.cs
- Block.cs
- ListViewSelectEventArgs.cs
- FileSecurity.cs
- DynamicMetaObjectBinder.cs
- NameTable.cs
- DesignBindingEditor.cs
- MimePart.cs
- EnterpriseServicesHelper.cs
- FreeFormDragDropManager.cs
- XmlWrappingReader.cs
- PackageStore.cs
- ActiveDocumentEvent.cs
- SqlDelegatedTransaction.cs
- WebReferenceCollection.cs
- SessionStateItemCollection.cs
- WorkflowViewElement.cs
- DataTableMappingCollection.cs
- DataFormats.cs
- Scripts.cs
- DebugTrace.cs
- LinqToSqlWrapper.cs
- BuilderElements.cs
- DiscreteKeyFrames.cs
- ClientEventManager.cs
- DetailsViewUpdatedEventArgs.cs
- WebExceptionStatus.cs
- HMACSHA384.cs
- TraceSource.cs
- HierarchicalDataBoundControl.cs
- WorkflowApplicationIdleEventArgs.cs
- SplitContainerDesigner.cs
- PageCatalogPart.cs
- SubqueryRules.cs
- DataSourceGroupCollection.cs
- UnsafeNativeMethods.cs
- bidPrivateBase.cs
- ColorMap.cs
- UrlPath.cs
- FrugalMap.cs
- WebUtil.cs
- TextPenaltyModule.cs
- SQLChars.cs
- DebuggerAttributes.cs
- DataGridViewElement.cs
- PrintController.cs
- DashStyle.cs
- XPathAxisIterator.cs
- EvidenceTypeDescriptor.cs
- PasswordDeriveBytes.cs
- FtpWebRequest.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- OutputCacheEntry.cs
- ServiceObjectContainer.cs
- TextServicesCompartmentEventSink.cs
- CryptoApi.cs
- XmlSchemaInfo.cs
- HitTestParameters3D.cs
- ControlPaint.cs
- FilterQueryOptionExpression.cs
- DataGrid.cs
- ImageSourceValueSerializer.cs
- HtmlInputRadioButton.cs
- ListViewTableCell.cs
- PolicyReader.cs
- unsafenativemethodsother.cs
- ClientSponsor.cs
- ToolStripRenderer.cs