Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //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.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
- TextInfo.cs
- Classification.cs
- BatchStream.cs
- PasswordDeriveBytes.cs
- WS2007HttpBindingCollectionElement.cs
- StructuredTypeInfo.cs
- HandoffBehavior.cs
- ClientSession.cs
- Executor.cs
- DBAsyncResult.cs
- CodeChecksumPragma.cs
- SizeChangedEventArgs.cs
- CornerRadius.cs
- TextServicesContext.cs
- ReplacementText.cs
- StringPropertyBuilder.cs
- ToolStripLabel.cs
- XmlComment.cs
- DropShadowBitmapEffect.cs
- MemoryRecordBuffer.cs
- EncodingInfo.cs
- WebBrowserUriTypeConverter.cs
- SymLanguageVendor.cs
- Int64Converter.cs
- DataControlCommands.cs
- IdnElement.cs
- HyperLinkField.cs
- SQLByte.cs
- ScaleTransform3D.cs
- WebBrowser.cs
- FontStretches.cs
- DoubleAnimationClockResource.cs
- XmlSerializerFactory.cs
- SqlProviderUtilities.cs
- CodeMemberMethod.cs
- BamlLocalizableResourceKey.cs
- DataRowExtensions.cs
- HtmlPanelAdapter.cs
- ContainerUtilities.cs
- FrameworkContentElement.cs
- TextServicesCompartmentContext.cs
- TriggerBase.cs
- TransformDescriptor.cs
- HashSetEqualityComparer.cs
- BindToObject.cs
- OleStrCAMarshaler.cs
- SecureEnvironment.cs
- SurrogateEncoder.cs
- ECDiffieHellmanCng.cs
- CheckPair.cs
- XmlNodeList.cs
- WebHeaderCollection.cs
- Attribute.cs
- StyleTypedPropertyAttribute.cs
- Debug.cs
- ProviderManager.cs
- RadioButton.cs
- FileInfo.cs
- HitTestResult.cs
- IDispatchConstantAttribute.cs
- ToolStripOverflow.cs
- LinkLabel.cs
- QilLoop.cs
- ScriptingRoleServiceSection.cs
- ActivityMarkupSerializer.cs
- UshortList2.cs
- CompiledRegexRunner.cs
- SqlDataSource.cs
- StylusEventArgs.cs
- ContainerFilterService.cs
- VectorCollectionValueSerializer.cs
- SkipStoryboardToFill.cs
- TabPageDesigner.cs
- CompoundFileStorageReference.cs
- ColorConvertedBitmap.cs
- TextTreeUndoUnit.cs
- NumericExpr.cs
- DataViewManager.cs
- StateMachineAction.cs
- X509Certificate.cs
- DataObject.cs
- DbParameterCollectionHelper.cs
- EntityDataSourceDesigner.cs
- BaseDataList.cs
- SpAudioStreamWrapper.cs
- WeakReferenceList.cs
- SocketInformation.cs
- WorkflowMarkupSerializationException.cs
- ColorTransform.cs
- ChtmlFormAdapter.cs
- AutomationTextAttribute.cs
- RootDesignerSerializerAttribute.cs
- FloatUtil.cs
- ExpandedProjectionNode.cs
- FullTextState.cs
- SByteConverter.cs
- PrintController.cs
- NativeMethods.cs
- SecurityContextSecurityToken.cs
- MultiView.cs