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
- ColorConverter.cs
- HandleCollector.cs
- NativeMethods.cs
- NegotiateStream.cs
- PropertyGridEditorPart.cs
- ColorContext.cs
- ProfileEventArgs.cs
- AppSettingsReader.cs
- TcpWorkerProcess.cs
- SamlDelegatingWriter.cs
- XhtmlBasicListAdapter.cs
- XmlEntityReference.cs
- BezierSegment.cs
- XmlNodeList.cs
- GC.cs
- NegotiationTokenAuthenticator.cs
- ComponentResourceKey.cs
- StringArrayEditor.cs
- CharAnimationUsingKeyFrames.cs
- DetailsViewCommandEventArgs.cs
- Timer.cs
- HttpCachePolicyWrapper.cs
- IBuiltInEvidence.cs
- ErrorLog.cs
- SizeChangedInfo.cs
- PreparingEnlistment.cs
- WorkflowRuntimeService.cs
- XamlStream.cs
- DataSourceControl.cs
- StackOverflowException.cs
- DrawingDrawingContext.cs
- HMACRIPEMD160.cs
- TextInfo.cs
- UnsafeNativeMethods.cs
- UTF8Encoding.cs
- MsmqIntegrationElement.cs
- WebPartConnectionsConnectVerb.cs
- AppDomainGrammarProxy.cs
- DecoderNLS.cs
- ClientConfigPaths.cs
- DataGridViewHitTestInfo.cs
- FontConverter.cs
- StringConcat.cs
- ICollection.cs
- TreeBuilderXamlTranslator.cs
- DeferredElementTreeState.cs
- NativeMethods.cs
- ViewGenResults.cs
- OracleCommandBuilder.cs
- OleDbException.cs
- TransformerConfigurationWizardBase.cs
- MachineKeyConverter.cs
- DateTimeOffsetStorage.cs
- BinaryMessageEncoder.cs
- UserControlFileEditor.cs
- OverloadGroupAttribute.cs
- WebSysDescriptionAttribute.cs
- HtmlElement.cs
- WindowsListViewScroll.cs
- PackageDigitalSignature.cs
- ApplicationContext.cs
- CustomAttributeBuilder.cs
- Style.cs
- DbModificationCommandTree.cs
- SecureEnvironment.cs
- DBSqlParserColumn.cs
- ProxyWebPart.cs
- ProbeDuplexCD1AsyncResult.cs
- FillErrorEventArgs.cs
- fixedPageContentExtractor.cs
- SecurityContextSecurityTokenAuthenticator.cs
- TableLayoutPanelBehavior.cs
- TypeRestriction.cs
- DbProviderFactory.cs
- RoleManagerModule.cs
- DynamicValueConverter.cs
- NetworkStream.cs
- CursorConverter.cs
- DesignTimeData.cs
- AtomServiceDocumentSerializer.cs
- LinearGradientBrush.cs
- SqlConnection.cs
- PersonalizablePropertyEntry.cs
- ArrangedElementCollection.cs
- FixedFindEngine.cs
- DiscoveryInnerClientAdhoc11.cs
- IndentedWriter.cs
- DiagnosticStrings.cs
- TextElementAutomationPeer.cs
- UIPropertyMetadata.cs
- TextRangeEditTables.cs
- TerminatorSinks.cs
- PermissionSetTriple.cs
- DoubleCollectionValueSerializer.cs
- EmptyCollection.cs
- PathSegment.cs
- DesignerAdRotatorAdapter.cs
- LinqToSqlWrapper.cs
- TargetControlTypeAttribute.cs
- ProcessThreadCollection.cs