Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;} } } }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
- AppSettingsSection.cs
- CommonXSendMessage.cs
- MimeParameters.cs
- FieldNameLookup.cs
- Vector3DKeyFrameCollection.cs
- TdsParser.cs
- XmlIncludeAttribute.cs
- DriveInfo.cs
- ProviderMetadata.cs
- DataGridViewColumn.cs
- DesignerActionService.cs
- Stack.cs
- TraceInternal.cs
- ResourceDefaultValueAttribute.cs
- XmlSerializationReader.cs
- XmlAttributes.cs
- SamlSerializer.cs
- PropertyMappingExceptionEventArgs.cs
- RadioButton.cs
- CssTextWriter.cs
- WebPartUserCapability.cs
- CellIdBoolean.cs
- IndentedTextWriter.cs
- ImageBrush.cs
- MimeBasePart.cs
- WindowsFormsHost.cs
- RichTextBoxAutomationPeer.cs
- MethodBuilderInstantiation.cs
- CallbackValidatorAttribute.cs
- LicenseException.cs
- ListViewContainer.cs
- DocumentEventArgs.cs
- TypeConverterAttribute.cs
- TreeNodeBindingDepthConverter.cs
- EntityDataSourceReferenceGroup.cs
- ReadOnlyObservableCollection.cs
- ComboBoxItem.cs
- AxDesigner.cs
- FixedLineResult.cs
- JsonDataContract.cs
- util.cs
- SafeRegistryHandle.cs
- AlphaSortedEnumConverter.cs
- StringAnimationBase.cs
- externdll.cs
- ClockGroup.cs
- TextHidden.cs
- ScopelessEnumAttribute.cs
- CompareValidator.cs
- CompiledELinqQueryState.cs
- EntityDataSourceStatementEditorForm.cs
- ResourceReferenceKeyNotFoundException.cs
- BaseComponentEditor.cs
- FileLogRecord.cs
- COM2IPerPropertyBrowsingHandler.cs
- TemplatePartAttribute.cs
- ExceptionValidationRule.cs
- SHA512.cs
- FlowPosition.cs
- StructuredTypeInfo.cs
- PenCursorManager.cs
- Logging.cs
- XmlDigitalSignatureProcessor.cs
- SerializerProvider.cs
- XmlSchemaException.cs
- Substitution.cs
- DataGridViewColumnConverter.cs
- BulletedListEventArgs.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- XmlSchemaAnyAttribute.cs
- MachineKeySection.cs
- ToolStripItemClickedEventArgs.cs
- WindowsListViewScroll.cs
- PropertyGridView.cs
- _NegotiateClient.cs
- PerfCounterSection.cs
- XmlDataFileEditor.cs
- SafeNativeMethods.cs
- SerializerDescriptor.cs
- AppSecurityManager.cs
- WeakEventManager.cs
- BufferedGraphicsManager.cs
- CryptoApi.cs
- CornerRadiusConverter.cs
- SoapHeaderAttribute.cs
- ScriptModule.cs
- ListViewAutomationPeer.cs
- PipeStream.cs
- EnumUnknown.cs
- TextReader.cs
- ValueUtilsSmi.cs
- XmlSchemaCollection.cs
- Exception.cs
- CircleHotSpot.cs
- SingleObjectCollection.cs
- SamlSerializer.cs
- FrameworkElementFactoryMarkupObject.cs
- XmlDictionaryReader.cs
- DataControlFieldCollection.cs
- FontFamilyIdentifier.cs