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
- ExpressionBindingCollection.cs
- SQLMoney.cs
- PasswordBoxAutomationPeer.cs
- SqlConnectionHelper.cs
- TextBounds.cs
- PagerStyle.cs
- CTreeGenerator.cs
- OleStrCAMarshaler.cs
- RelationshipDetailsCollection.cs
- messageonlyhwndwrapper.cs
- EventLogInternal.cs
- WrappedReader.cs
- OraclePermission.cs
- LocalizabilityAttribute.cs
- PlatformNotSupportedException.cs
- DbConnectionHelper.cs
- UserPersonalizationStateInfo.cs
- Timer.cs
- MultiBinding.cs
- ExpandCollapsePatternIdentifiers.cs
- ProviderBase.cs
- StatusBarItemAutomationPeer.cs
- SqlNotificationEventArgs.cs
- DEREncoding.cs
- SolidBrush.cs
- XamlNamespaceHelper.cs
- OperationInvokerTrace.cs
- FlowDocumentReader.cs
- LazyTextWriterCreator.cs
- SocketPermission.cs
- CodeTryCatchFinallyStatement.cs
- LayoutManager.cs
- GenericPrincipal.cs
- ControlIdConverter.cs
- listviewsubitemcollectioneditor.cs
- TableMethodGenerator.cs
- PerfService.cs
- SecurityUtils.cs
- BinaryObjectInfo.cs
- ResourceDescriptionAttribute.cs
- Point.cs
- EncodingDataItem.cs
- _NegoState.cs
- TypeDelegator.cs
- JsonObjectDataContract.cs
- DataGridViewButtonColumn.cs
- HttpRuntimeSection.cs
- ColumnMapTranslator.cs
- TextParaClient.cs
- Base64WriteStateInfo.cs
- ListBoxItemAutomationPeer.cs
- GreenMethods.cs
- IPEndPoint.cs
- SqlParameterizer.cs
- InternalMappingException.cs
- Point3DCollection.cs
- CreateUserWizardStep.cs
- TextBoxLine.cs
- ClientEndpointLoader.cs
- Expression.DebuggerProxy.cs
- SqlBuffer.cs
- _ScatterGatherBuffers.cs
- Int16.cs
- WebBrowserContainer.cs
- XmlSerializationWriter.cs
- SystemColorTracker.cs
- WebPartConnectionCollection.cs
- PhonemeEventArgs.cs
- BypassElementCollection.cs
- TransformCollection.cs
- ClientSettings.cs
- listitem.cs
- FormsIdentity.cs
- ToolStripLabel.cs
- Timeline.cs
- LongValidator.cs
- FlowPosition.cs
- SqlConnection.cs
- OracleConnectionString.cs
- ToolStripPanelRow.cs
- ScriptReference.cs
- ControlCollection.cs
- Viewport3DAutomationPeer.cs
- EventLogEntryCollection.cs
- SchemaImporterExtensionElement.cs
- XPathNodeIterator.cs
- RowToParametersTransformer.cs
- SqlEnums.cs
- IImplicitResourceProvider.cs
- ArithmeticException.cs
- HttpInputStream.cs
- NotificationContext.cs
- ListBoxDesigner.cs
- StreamDocument.cs
- ProcessThread.cs
- QuestionEventArgs.cs
- Transform.cs
- Binding.cs
- PropertyInfoSet.cs
- NestPullup.cs