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
- VirtualizedCellInfoCollection.cs
- WebHttpBehavior.cs
- ServiceHostFactory.cs
- ISAPIApplicationHost.cs
- Transform.cs
- mda.cs
- Size.cs
- ProfileGroupSettings.cs
- StorageEntitySetMapping.cs
- PrintingPermission.cs
- Rotation3D.cs
- StylusCollection.cs
- QueryOutputWriter.cs
- WindowsContainer.cs
- ScriptControlManager.cs
- IssuedTokenClientCredential.cs
- EntitySqlQueryBuilder.cs
- SoapClientProtocol.cs
- SafeEventLogWriteHandle.cs
- ElementFactory.cs
- DataListComponentEditor.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SignatureDescription.cs
- ResourceContainer.cs
- ModelFactory.cs
- LayoutEvent.cs
- TableLayoutPanelCellPosition.cs
- Panel.cs
- MenuCommandsChangedEventArgs.cs
- ChildTable.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridTable.cs
- UpdateRecord.cs
- MembershipValidatePasswordEventArgs.cs
- TableStyle.cs
- RouteValueExpressionBuilder.cs
- AttachInfo.cs
- TypeSystem.cs
- MethodBuilderInstantiation.cs
- ColorDialog.cs
- SmiSettersStream.cs
- PrimitiveCodeDomSerializer.cs
- MonthCalendar.cs
- entityreference_tresulttype.cs
- listitem.cs
- ViewGenResults.cs
- ToolStripItemCollection.cs
- Wow64ConfigurationLoader.cs
- Win32SafeHandles.cs
- Base64Stream.cs
- TcpProcessProtocolHandler.cs
- ChtmlSelectionListAdapter.cs
- UIElement3D.cs
- FrugalMap.cs
- TextBoxBase.cs
- ReliabilityContractAttribute.cs
- GeneratedContractType.cs
- DecoderBestFitFallback.cs
- TimeSpanMinutesConverter.cs
- DispatchChannelSink.cs
- HttpListenerResponse.cs
- BamlBinaryReader.cs
- ComplexLine.cs
- CallSite.cs
- Point3DValueSerializer.cs
- DataListComponentEditor.cs
- ImageSourceConverter.cs
- ServiceTimeoutsBehavior.cs
- Application.cs
- TextCollapsingProperties.cs
- HTMLTagNameToTypeMapper.cs
- DetailsViewRow.cs
- CheckBoxPopupAdapter.cs
- FlowDocument.cs
- RandomNumberGenerator.cs
- TextBoxLine.cs
- Menu.cs
- processwaithandle.cs
- RealizationContext.cs
- MailMessageEventArgs.cs
- PathSegmentCollection.cs
- PermissionToken.cs
- OrderedDictionary.cs
- ThreadInterruptedException.cs
- ContentIterators.cs
- MenuItemCollectionEditor.cs
- bidPrivateBase.cs
- AdRotator.cs
- Logging.cs
- Floater.cs
- SafeTokenHandle.cs
- HandleValueEditor.cs
- DateTimeFormatInfo.cs
- DataGridViewLinkCell.cs
- Msec.cs
- SqlServer2KCompatibilityCheck.cs
- XmlSerializer.cs
- RequestCache.cs
- QualifiedCellIdBoolean.cs
- ActivityLocationReferenceEnvironment.cs