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
- DataGridViewColumnCollection.cs
- LayoutEvent.cs
- WebMessageEncodingBindingElement.cs
- KeyedHashAlgorithm.cs
- SqlDataSourceCommandParser.cs
- QueuePropertyVariants.cs
- SafeNativeMethodsCLR.cs
- ScriptingRoleServiceSection.cs
- TransactedBatchingElement.cs
- NegationPusher.cs
- SecurityState.cs
- TypeBuilder.cs
- TextBreakpoint.cs
- LowerCaseStringConverter.cs
- CharacterMetrics.cs
- HostingEnvironment.cs
- ColumnResult.cs
- Compiler.cs
- HttpHandlerActionCollection.cs
- AsyncStreamReader.cs
- RSAOAEPKeyExchangeDeformatter.cs
- LinkTarget.cs
- WindowsFormsHostPropertyMap.cs
- SmiEventSink_Default.cs
- CommandHelpers.cs
- WebScriptMetadataMessageEncoderFactory.cs
- NativeObjectSecurity.cs
- DirectionalLight.cs
- TableRowCollection.cs
- Calendar.cs
- ScaleTransform3D.cs
- FlowNode.cs
- BindableTemplateBuilder.cs
- DynamicArgumentDialog.cs
- CodeIterationStatement.cs
- GiveFeedbackEventArgs.cs
- XamlContextStack.cs
- TextSelectionHighlightLayer.cs
- GifBitmapDecoder.cs
- ImageSourceConverter.cs
- MappingException.cs
- WindowsListViewGroup.cs
- IResourceProvider.cs
- DataListItem.cs
- HtmlTitle.cs
- SqlCacheDependencyDatabase.cs
- CookielessData.cs
- EmptyControlCollection.cs
- SizeValueSerializer.cs
- CompilationLock.cs
- ReverseComparer.cs
- ResourceReferenceKeyNotFoundException.cs
- StatusStrip.cs
- DateTimeSerializationSection.cs
- ControlValuePropertyAttribute.cs
- TextBoxBase.cs
- SelectionItemProviderWrapper.cs
- AuthenticationException.cs
- ItemsControlAutomationPeer.cs
- ResolveMatchesMessageCD1.cs
- XmlSchemaInferenceException.cs
- TimeoutValidationAttribute.cs
- ListView.cs
- Schema.cs
- SynchronizedChannelCollection.cs
- Errors.cs
- WebPartDisplayModeEventArgs.cs
- ModulesEntry.cs
- ClientSponsor.cs
- SecurityRuntime.cs
- TimerEventSubscription.cs
- DesignerValidationSummaryAdapter.cs
- SafeEventLogReadHandle.cs
- QilTargetType.cs
- DocumentApplicationJournalEntry.cs
- RuntimeVariablesExpression.cs
- SessionState.cs
- SerializationFieldInfo.cs
- DefaultExpressionVisitor.cs
- AutoScrollHelper.cs
- PocoPropertyAccessorStrategy.cs
- WebControl.cs
- FormsAuthenticationModule.cs
- WebPartConnectionsCancelVerb.cs
- SimpleHandlerBuildProvider.cs
- XamlFigureLengthSerializer.cs
- EventProviderWriter.cs
- TableItemPattern.cs
- InputScope.cs
- BinaryUtilClasses.cs
- COM2ExtendedTypeConverter.cs
- DbConnectionPoolIdentity.cs
- WebSysDefaultValueAttribute.cs
- CacheDependency.cs
- CreateUserErrorEventArgs.cs
- SafeCloseHandleCritical.cs
- GeneralTransform3DTo2D.cs
- BitmapEffectInput.cs
- DataGridViewCellStyleConverter.cs
- InputLanguage.cs