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
- MobileComponentEditorPage.cs
- NamespaceListProperty.cs
- XPathParser.cs
- InputGestureCollection.cs
- FormatConvertedBitmap.cs
- ColumnHeader.cs
- TextDecorationLocationValidation.cs
- ApplicationServiceHelper.cs
- CacheSection.cs
- MemberRelationshipService.cs
- SqlClientWrapperSmiStream.cs
- RSAPKCS1SignatureDeformatter.cs
- DbTransaction.cs
- OracleConnectionString.cs
- Convert.cs
- FrugalMap.cs
- SymbolTable.cs
- Base64Decoder.cs
- TypeSystemProvider.cs
- HostSecurityManager.cs
- ClientSponsor.cs
- FileUtil.cs
- BindingCompleteEventArgs.cs
- PasswordDeriveBytes.cs
- ResourceType.cs
- HttpChannelBindingToken.cs
- Internal.cs
- SyndicationCategory.cs
- ControlTemplate.cs
- Processor.cs
- NavigateEvent.cs
- EventWaitHandleSecurity.cs
- XmlSchemaAttribute.cs
- ConstNode.cs
- EditorZoneBase.cs
- webclient.cs
- ProjectedSlot.cs
- ToolboxItem.cs
- XmlSchemaValidator.cs
- ChtmlCalendarAdapter.cs
- TextBox.cs
- WebBaseEventKeyComparer.cs
- UserMapPath.cs
- MemberListBinding.cs
- SelectionHighlightInfo.cs
- AsyncStreamReader.cs
- Logging.cs
- FileInfo.cs
- XmlILAnnotation.cs
- SqlTypeConverter.cs
- WebPartConnectionsDisconnectVerb.cs
- RandomNumberGenerator.cs
- _FtpDataStream.cs
- SqlCommandSet.cs
- _BufferOffsetSize.cs
- HyperLink.cs
- ILGenerator.cs
- PrintDialog.cs
- DataService.cs
- CodeActivityMetadata.cs
- HttpEncoderUtility.cs
- ReturnEventArgs.cs
- KnownTypesProvider.cs
- CollectionType.cs
- ListViewSortEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- IdnElement.cs
- TextEditorSelection.cs
- EnlistmentState.cs
- CompilationLock.cs
- PackageRelationshipSelector.cs
- SHA256.cs
- KeyValuePair.cs
- WebPartDisplayMode.cs
- TransactionTraceIdentifier.cs
- TraceHandler.cs
- DataGridRow.cs
- DataReceivedEventArgs.cs
- EntityStoreSchemaGenerator.cs
- PopupRoot.cs
- ImageBrush.cs
- PointConverter.cs
- NonClientArea.cs
- Compilation.cs
- Single.cs
- LogicalTreeHelper.cs
- COM2ExtendedTypeConverter.cs
- NetNamedPipeBindingCollectionElement.cs
- unsafeIndexingFilterStream.cs
- DbParameterCollectionHelper.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- IntegerCollectionEditor.cs
- AutoSizeToolBoxItem.cs
- StartUpEventArgs.cs
- PreviewPageInfo.cs
- HierarchicalDataBoundControl.cs
- objectresult_tresulttype.cs
- ReferencedType.cs
- Directory.cs
- CapabilitiesRule.cs