Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- AdornedElementPlaceholder.cs
- WebResourceAttribute.cs
- BitmapEffectState.cs
- InstalledVoice.cs
- EntityDataSourceDesignerHelper.cs
- VolatileEnlistmentMultiplexing.cs
- Descriptor.cs
- StringArrayConverter.cs
- DispatcherFrame.cs
- HtmlToClrEventProxy.cs
- RowsCopiedEventArgs.cs
- PrinterUnitConvert.cs
- ChannelDispatcher.cs
- DefaultCommandConverter.cs
- bidPrivateBase.cs
- ConfigUtil.cs
- UpdateProgress.cs
- DecimalFormatter.cs
- SplineQuaternionKeyFrame.cs
- SchemaInfo.cs
- DbParameterCollectionHelper.cs
- AuthenticationServiceManager.cs
- AuthStoreRoleProvider.cs
- SiteMapDataSourceView.cs
- TimeSpanFormat.cs
- DataViewManager.cs
- HandlerBase.cs
- EntityConnection.cs
- BlobPersonalizationState.cs
- FormViewUpdatedEventArgs.cs
- input.cs
- BamlResourceSerializer.cs
- EmptyCollection.cs
- DateRangeEvent.cs
- UrlAuthorizationModule.cs
- securitymgrsite.cs
- WeakEventTable.cs
- TextRunCache.cs
- CapabilitiesPattern.cs
- ipaddressinformationcollection.cs
- SocketPermission.cs
- DataGridViewCellStyleChangedEventArgs.cs
- OleDbCommand.cs
- TypefaceMetricsCache.cs
- BinaryUtilClasses.cs
- XmlValueConverter.cs
- DescendantOverDescendantQuery.cs
- TiffBitmapDecoder.cs
- TrackingCondition.cs
- Int64KeyFrameCollection.cs
- GeneralTransformCollection.cs
- DragEvent.cs
- TextEffect.cs
- PropertyEmitterBase.cs
- WebControl.cs
- SecurityStateEncoder.cs
- XamlStream.cs
- _NestedMultipleAsyncResult.cs
- SmiRequestExecutor.cs
- Crc32.cs
- RetrieveVirtualItemEventArgs.cs
- GradientSpreadMethodValidation.cs
- Debug.cs
- HttpApplicationFactory.cs
- SqlPersonalizationProvider.cs
- DataContractJsonSerializer.cs
- BitmapSource.cs
- _Win32.cs
- OleDbPermission.cs
- TextEditorSpelling.cs
- PhoneCall.cs
- ConfigurationStrings.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SchemaObjectWriter.cs
- PermissionAttributes.cs
- XmlDocumentViewSchema.cs
- HtmlElementEventArgs.cs
- XmlUtil.cs
- PinnedBufferMemoryStream.cs
- DataGridHeaderBorder.cs
- XmlReaderSettings.cs
- DetailsView.cs
- DetailsViewRow.cs
- PropertyAccessVisitor.cs
- Rectangle.cs
- WindowClosedEventArgs.cs
- glyphs.cs
- RuntimeConfigLKG.cs
- RTLAwareMessageBox.cs
- ControlEvent.cs
- IdentityManager.cs
- EdmRelationshipRoleAttribute.cs
- ScalarType.cs
- EntityConnection.cs
- QueryComponents.cs
- GroupQuery.cs
- DataGridViewRowsRemovedEventArgs.cs
- ComponentDispatcherThread.cs
- DataGridViewRowsAddedEventArgs.cs
- Rect.cs