Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. // 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
- PlaceHolder.cs
- DiscardableAttribute.cs
- ParameterToken.cs
- BoolLiteral.cs
- Assembly.cs
- GridViewRowCollection.cs
- CodeDOMProvider.cs
- XmlNavigatorStack.cs
- PermissionToken.cs
- HiddenField.cs
- ChangeBlockUndoRecord.cs
- Decimal.cs
- AsymmetricSignatureFormatter.cs
- HelpEvent.cs
- ImageListStreamer.cs
- ObjectViewQueryResultData.cs
- SmiConnection.cs
- SQLMoneyStorage.cs
- ForceCopyBuildProvider.cs
- MemoryFailPoint.cs
- WebBrowser.cs
- ConfigXmlComment.cs
- WorkflowDesignerMessageFilter.cs
- ExpressionBuilderContext.cs
- ElementUtil.cs
- InputQueue.cs
- XsltArgumentList.cs
- Attributes.cs
- ValidationResult.cs
- DelegatingConfigHost.cs
- MediaElementAutomationPeer.cs
- TextSpanModifier.cs
- Operand.cs
- ListViewHitTestInfo.cs
- SecurityChannelFactory.cs
- PartialCachingAttribute.cs
- TreeIterator.cs
- AssociatedControlConverter.cs
- Clipboard.cs
- RouteParser.cs
- AxImporter.cs
- UnaryQueryOperator.cs
- Storyboard.cs
- ImplicitInputBrush.cs
- JumpTask.cs
- EmptyElement.cs
- PolicyUnit.cs
- ExceptionDetail.cs
- ContainerSelectorActiveEvent.cs
- EdmValidator.cs
- DataSourceSelectArguments.cs
- NavigationPropertyEmitter.cs
- HttpInputStream.cs
- HttpContextServiceHost.cs
- CharKeyFrameCollection.cs
- SortDescription.cs
- EntityDataSource.cs
- ServiceThrottlingBehavior.cs
- QilStrConcatenator.cs
- MsmqTransportElement.cs
- Condition.cs
- ISAPIWorkerRequest.cs
- CultureTableRecord.cs
- ApplyTemplatesAction.cs
- DoubleUtil.cs
- InfoCardService.cs
- BasicExpressionVisitor.cs
- WebPartsPersonalization.cs
- ModuleElement.cs
- XmlValueConverter.cs
- URLAttribute.cs
- CancellationTokenRegistration.cs
- XmlText.cs
- RoleManagerSection.cs
- CompoundFileStreamReference.cs
- MultipleViewProviderWrapper.cs
- GridViewCancelEditEventArgs.cs
- EntityClientCacheEntry.cs
- QueryContinueDragEventArgs.cs
- XmlCharCheckingReader.cs
- Receive.cs
- ContentDisposition.cs
- RegisteredDisposeScript.cs
- WindowProviderWrapper.cs
- ContextCorrelationInitializer.cs
- DataGridViewColumnCollectionDialog.cs
- figurelength.cs
- ObjectConverter.cs
- HashRepartitionStream.cs
- BamlRecordHelper.cs
- TextBounds.cs
- BStrWrapper.cs
- DropDownButton.cs
- XDRSchema.cs
- SqlUtils.cs
- XmlDataLoader.cs
- RuntimeConfigLKG.cs
- Geometry3D.cs
- XPathDocumentIterator.cs
- XmlNamespaceMappingCollection.cs