Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / MS / Internal / Controls / ValidationRuleCollection.cs / 1 / ValidationRuleCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // ValidationRulesCollection is a collection of ValidationRule // instances on either a Binding or a MultiBinding. Each of the rules // is checked for validity on update // // See specs at http://avalon/connecteddata/Specs/Validation.mht // // History: // 5/3/2004 mharper: created. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Controls; namespace MS.Internal.Controls { ////// ValidationRulesCollection is a collection of ValidationRule /// instances on either a Binding or a MultiBinding. Each of the rules /// is checked for validity on update /// internal class ValidationRuleCollection : Collection{ //----------------------------------------------------- // // Protected Methods // //----------------------------------------------------- #region Protected Methods /// /// called by base class Collection<T> when an item is added to list; /// raises a CollectionChanged event to any listeners /// protected override void InsertItem(int index, ValidationRule item) { if (item == null) throw new ArgumentNullException("item"); base.InsertItem(index, item); } ////// called by base class Collection<T> when an item is added to list; /// raises a CollectionChanged event to any listeners /// protected override void SetItem(int index, ValidationRule item) { if (item == null) throw new ArgumentNullException("item"); base.SetItem(index, item); } #endregion Protected Methods } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // ValidationRulesCollection is a collection of ValidationRule // instances on either a Binding or a MultiBinding. Each of the rules // is checked for validity on update // // See specs at http://avalon/connecteddata/Specs/Validation.mht // // History: // 5/3/2004 mharper: created. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Controls; namespace MS.Internal.Controls { ////// ValidationRulesCollection is a collection of ValidationRule /// instances on either a Binding or a MultiBinding. Each of the rules /// is checked for validity on update /// internal class ValidationRuleCollection : Collection{ //----------------------------------------------------- // // Protected Methods // //----------------------------------------------------- #region Protected Methods /// /// called by base class Collection<T> when an item is added to list; /// raises a CollectionChanged event to any listeners /// protected override void InsertItem(int index, ValidationRule item) { if (item == null) throw new ArgumentNullException("item"); base.InsertItem(index, item); } ////// called by base class Collection<T> when an item is added to list; /// raises a CollectionChanged event to any listeners /// protected override void SetItem(int index, ValidationRule item) { if (item == null) throw new ArgumentNullException("item"); base.SetItem(index, item); } #endregion Protected Methods } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataSourceControlBuilder.cs
- ConfigXmlAttribute.cs
- PreservationFileWriter.cs
- COM2ExtendedUITypeEditor.cs
- ContextMarshalException.cs
- EdmPropertyAttribute.cs
- PtsPage.cs
- AvtEvent.cs
- TimeSpanStorage.cs
- _CommandStream.cs
- IndexerNameAttribute.cs
- LongCountAggregationOperator.cs
- DesignerRegionMouseEventArgs.cs
- SectionRecord.cs
- SpeechEvent.cs
- BuildProviderAppliesToAttribute.cs
- XmlSchemaObjectCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- SqlBooleanizer.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- AmbientLight.cs
- CmsInterop.cs
- SQLBinaryStorage.cs
- SoapAttributeOverrides.cs
- AnnotationResourceChangedEventArgs.cs
- SafeRsaProviderHandle.cs
- XPathNavigatorReader.cs
- CustomSignedXml.cs
- Signature.cs
- _KerberosClient.cs
- PackageDigitalSignatureManager.cs
- DataGridViewCellStyleConverter.cs
- RegexRunner.cs
- DataGridTablesFactory.cs
- TextTreeTextNode.cs
- DataServiceStreamProviderWrapper.cs
- PageBreakRecord.cs
- ToolStripRenderer.cs
- HtmlControlPersistable.cs
- DataGridAddNewRow.cs
- ServiceThrottlingBehavior.cs
- SqlUDTStorage.cs
- BrowserCapabilitiesFactory.cs
- MemberInfoSerializationHolder.cs
- IImplicitResourceProvider.cs
- Events.cs
- HttpCookie.cs
- AxHost.cs
- Ticks.cs
- CollectionsUtil.cs
- CleanUpVirtualizedItemEventArgs.cs
- EmissiveMaterial.cs
- BinHexEncoder.cs
- XmlAnyElementAttribute.cs
- CryptoConfig.cs
- HMACSHA512.cs
- View.cs
- RNGCryptoServiceProvider.cs
- FrameSecurityDescriptor.cs
- SiteMapNodeItem.cs
- Funcletizer.cs
- Drawing.cs
- UndoManager.cs
- EnumBuilder.cs
- SettingsBindableAttribute.cs
- ArrayTypeMismatchException.cs
- WpfWebRequestHelper.cs
- SoapFault.cs
- DataRowExtensions.cs
- InputLanguageEventArgs.cs
- DelegatingConfigHost.cs
- RelationshipWrapper.cs
- MaxMessageSizeStream.cs
- ObjectHandle.cs
- PersonalizationProvider.cs
- Trace.cs
- XPathAncestorQuery.cs
- AttachInfo.cs
- Tile.cs
- PointIndependentAnimationStorage.cs
- XPathSelfQuery.cs
- WindowInteractionStateTracker.cs
- XmlTextReaderImplHelpers.cs
- ImageMap.cs
- StylusButtonEventArgs.cs
- XmlDocumentType.cs
- DataGrid.cs
- QuaternionRotation3D.cs
- TransformerTypeCollection.cs
- ErrorProvider.cs
- CoreSwitches.cs
- TableCell.cs
- ModulesEntry.cs
- StringStorage.cs
- LayoutTableCell.cs
- ViewBox.cs
- TypeExtensionSerializer.cs
- ExceptionHandlerDesigner.cs
- MembershipSection.cs
- CompletedAsyncResult.cs