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
- DataBoundControl.cs
- OrderByExpression.cs
- XmlSchemaAnyAttribute.cs
- EntityDescriptor.cs
- XNodeValidator.cs
- StyleConverter.cs
- ChameleonKey.cs
- HttpHandlerAction.cs
- LocationChangedEventArgs.cs
- XmlSchemaValidator.cs
- Codec.cs
- HttpRuntime.cs
- ErrorProvider.cs
- ChannelRequirements.cs
- ToolStripManager.cs
- SingleConverter.cs
- DesignerAttribute.cs
- DnsEndPoint.cs
- MulticastIPAddressInformationCollection.cs
- SmtpReplyReaderFactory.cs
- UnitySerializationHolder.cs
- BinHexEncoder.cs
- CompatibleComparer.cs
- XmlAttributeOverrides.cs
- SerialStream.cs
- EventProperty.cs
- WmfPlaceableFileHeader.cs
- CurrentChangingEventArgs.cs
- CodeCatchClause.cs
- UniqueContractNameValidationBehavior.cs
- DataGridViewColumnEventArgs.cs
- BufferModeSettings.cs
- columnmapkeybuilder.cs
- MessageSecurityVersion.cs
- SiteMembershipCondition.cs
- ProxyWebPartConnectionCollection.cs
- HttpFileCollectionBase.cs
- ISAPIWorkerRequest.cs
- XmlAttributeCollection.cs
- WindowsIdentity.cs
- UnauthorizedAccessException.cs
- WebPartConnectionsDisconnectVerb.cs
- TextSpanModifier.cs
- ToolBar.cs
- ShaderRenderModeValidation.cs
- KeyboardEventArgs.cs
- RotateTransform.cs
- CorrelationTokenTypeConvertor.cs
- SafeNativeMethods.cs
- PageCache.cs
- BaseParaClient.cs
- InvalidCardException.cs
- GridView.cs
- TextElementEnumerator.cs
- SecUtil.cs
- AttributeCollection.cs
- Buffer.cs
- IndexedGlyphRun.cs
- LoginView.cs
- GridViewSelectEventArgs.cs
- SqlConnection.cs
- BoundConstants.cs
- BeginEvent.cs
- MultiBindingExpression.cs
- TerminatorSinks.cs
- Vector3dCollection.cs
- ListViewUpdatedEventArgs.cs
- ProjectionRewriter.cs
- Pen.cs
- IdentityReference.cs
- ProfileProvider.cs
- AutomationEvent.cs
- XmlArrayItemAttributes.cs
- SignatureDescription.cs
- FontFaceLayoutInfo.cs
- SmiRecordBuffer.cs
- TypeForwardedFromAttribute.cs
- MergeFailedEvent.cs
- DirectoryInfo.cs
- SessionSwitchEventArgs.cs
- WizardPanel.cs
- StrokeNodeData.cs
- AsyncOperationManager.cs
- DataServices.cs
- StyleSheetRefUrlEditor.cs
- _NegoStream.cs
- TaskHelper.cs
- NotifyParentPropertyAttribute.cs
- RowTypePropertyElement.cs
- BezierSegment.cs
- DesignerCategoryAttribute.cs
- LineSegment.cs
- EdmPropertyAttribute.cs
- BaseTemplatedMobileComponentEditor.cs
- Crc32Helper.cs
- XmlCharacterData.cs
- ServiceChannel.cs
- SingleSelectRootGridEntry.cs
- ToolStripTextBox.cs
- WebPartDisplayModeCollection.cs