Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ColumnResizeUndoUnit.cs
- Decoder.cs
- KeyValuePairs.cs
- ProfilePropertyNameValidator.cs
- JavaScriptSerializer.cs
- WindowsClientElement.cs
- DocumentXmlWriter.cs
- RegexCode.cs
- SettingsPropertyValue.cs
- InstanceKeyCompleteException.cs
- ApplicationManager.cs
- InstanceNameConverter.cs
- ComplusEndpointConfigContainer.cs
- RequestTimeoutManager.cs
- httpapplicationstate.cs
- MatrixAnimationUsingKeyFrames.cs
- FontEmbeddingManager.cs
- DefaultValueAttribute.cs
- SafeNativeMethods.cs
- PeerInvitationResponse.cs
- HealthMonitoringSectionHelper.cs
- WindowsImpersonationContext.cs
- CatalogZoneDesigner.cs
- XamlPathDataSerializer.cs
- XmlAttributeAttribute.cs
- SQLBytes.cs
- XmlElementAttributes.cs
- SqlDependency.cs
- CrossSiteScriptingValidation.cs
- CapacityStreamGeometryContext.cs
- ErrorTolerantObjectWriter.cs
- XmlCodeExporter.cs
- XappLauncher.cs
- TypeSystem.cs
- ProxyWebPartManager.cs
- SqlConnectionStringBuilder.cs
- CurrentChangingEventManager.cs
- SEHException.cs
- LeafCellTreeNode.cs
- CaseInsensitiveHashCodeProvider.cs
- DataAdapter.cs
- BigInt.cs
- WorkflowInstanceContextProvider.cs
- CheckBox.cs
- TextRangeSerialization.cs
- RadialGradientBrush.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- NativeMethods.cs
- ProxyElement.cs
- HttpModuleAction.cs
- DataComponentNameHandler.cs
- DynamicRenderer.cs
- SystemIPv4InterfaceProperties.cs
- HttpCookieCollection.cs
- FillRuleValidation.cs
- XmlQueryTypeFactory.cs
- HTTPRemotingHandler.cs
- DocumentApplicationJournalEntry.cs
- ListItemConverter.cs
- AttributeCollection.cs
- IndentedTextWriter.cs
- SkewTransform.cs
- SortKey.cs
- ServiceObjectContainer.cs
- CompositeClientFormatter.cs
- SystemKeyConverter.cs
- Win32.cs
- GenericTypeParameterBuilder.cs
- DescriptionAttribute.cs
- BindableTemplateBuilder.cs
- AppDomainManager.cs
- AccessedThroughPropertyAttribute.cs
- DataGridCell.cs
- UIElementAutomationPeer.cs
- ResourceAttributes.cs
- ListDictionary.cs
- EmptyReadOnlyDictionaryInternal.cs
- MatrixTransform.cs
- GridViewEditEventArgs.cs
- TreeBuilderXamlTranslator.cs
- ReversePositionQuery.cs
- AncestorChangedEventArgs.cs
- DataGridDetailsPresenter.cs
- _AcceptOverlappedAsyncResult.cs
- LeaseManager.cs
- SiteMapDataSourceView.cs
- SubpageParaClient.cs
- TextParaLineResult.cs
- OdbcHandle.cs
- XmlSchemaSet.cs
- OperationContractGenerationContext.cs
- XmlCustomFormatter.cs
- SqlClientMetaDataCollectionNames.cs
- SqlDataReader.cs
- OdbcConnectionStringbuilder.cs
- StateDesigner.cs
- RootBrowserWindowProxy.cs
- ComponentSerializationService.cs
- InvalidDataException.cs
- URLMembershipCondition.cs