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
- Span.cs
- ReachBasicContext.cs
- Handle.cs
- SecurityPolicyVersion.cs
- StreamGeometry.cs
- Hex.cs
- AnnouncementEndpoint.cs
- HasCopySemanticsAttribute.cs
- DrawListViewColumnHeaderEventArgs.cs
- DesignerDataConnection.cs
- TypeBuilderInstantiation.cs
- TemplatePropertyEntry.cs
- DirectoryInfo.cs
- SerializationEventsCache.cs
- Triplet.cs
- SqlServices.cs
- SchemaElementDecl.cs
- ConstructorExpr.cs
- WmiPutTraceRecord.cs
- ViewUtilities.cs
- HttpCapabilitiesSectionHandler.cs
- SymDocumentType.cs
- DataGridViewCellLinkedList.cs
- CombinedGeometry.cs
- Container.cs
- MonitoringDescriptionAttribute.cs
- Substitution.cs
- ValueUtilsSmi.cs
- tooltip.cs
- SecurityState.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- APCustomTypeDescriptor.cs
- CharacterBufferReference.cs
- RouteParameter.cs
- GACIdentityPermission.cs
- InvalidFilterCriteriaException.cs
- RequestReplyCorrelator.cs
- OdbcTransaction.cs
- PolyBezierSegment.cs
- TypeForwardedToAttribute.cs
- KeyboardDevice.cs
- PerspectiveCamera.cs
- TrackingLocation.cs
- VectorCollection.cs
- PageTheme.cs
- Point3DValueSerializer.cs
- CodeIdentifiers.cs
- IfAction.cs
- GraphicsPathIterator.cs
- SqlDataAdapter.cs
- DoubleKeyFrameCollection.cs
- OlePropertyStructs.cs
- SQLInt16.cs
- BitmapEffect.cs
- CompareValidator.cs
- ByteStorage.cs
- MoveSizeWinEventHandler.cs
- BooleanFunctions.cs
- Profiler.cs
- XPathAxisIterator.cs
- UserPreferenceChangedEventArgs.cs
- UserControl.cs
- InputScopeAttribute.cs
- COM2PropertyDescriptor.cs
- WebPartConnectionsConfigureVerb.cs
- Command.cs
- ISAPIRuntime.cs
- ToolStripManager.cs
- SafeFileHandle.cs
- ComboBox.cs
- SerializationAttributes.cs
- ListenDesigner.cs
- ExpressionBuilderCollection.cs
- UnicastIPAddressInformationCollection.cs
- ILGenerator.cs
- DoubleConverter.cs
- DocumentScope.cs
- ProfileSettingsCollection.cs
- EndpointAddressAugust2004.cs
- MembershipUser.cs
- SqlConnectionHelper.cs
- Utils.cs
- RequestChannel.cs
- ClosableStream.cs
- PriorityRange.cs
- MemberCollection.cs
- DefaultMemberAttribute.cs
- ListViewUpdateEventArgs.cs
- User.cs
- OrderedDictionary.cs
- RepeatButton.cs
- EdmToObjectNamespaceMap.cs
- externdll.cs
- DependencyObjectPropertyDescriptor.cs
- SystemIcmpV4Statistics.cs
- Size.cs
- X509ChainElement.cs
- TreeNode.cs
- MaskInputRejectedEventArgs.cs
- SchemaInfo.cs