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
- MetaData.cs
- Container.cs
- CompressedStack.cs
- PriorityQueue.cs
- ProxyElement.cs
- GenericTextProperties.cs
- StoreContentChangedEventArgs.cs
- httpserverutility.cs
- XamlGridLengthSerializer.cs
- WrapPanel.cs
- RangeContentEnumerator.cs
- WindowsFormsSynchronizationContext.cs
- RefreshPropertiesAttribute.cs
- ValidationVisibilityAttribute.cs
- HttpCapabilitiesSectionHandler.cs
- PaperSize.cs
- StorageRoot.cs
- HtmlMeta.cs
- Page.cs
- StateMachineSubscriptionManager.cs
- RequestSecurityToken.cs
- Debugger.cs
- Normalization.cs
- DbMetaDataColumnNames.cs
- OptimizedTemplateContent.cs
- ToolStripSeparatorRenderEventArgs.cs
- ClipboardData.cs
- UncommonField.cs
- HuffModule.cs
- UnmanagedMemoryStream.cs
- TextServicesDisplayAttributePropertyRanges.cs
- HashSetEqualityComparer.cs
- ListView.cs
- MemoryFailPoint.cs
- X509ChainPolicy.cs
- ProxyGenerator.cs
- CharacterMetricsDictionary.cs
- InputScope.cs
- KeyProperty.cs
- OutputCacheSettingsSection.cs
- PropertyFilterAttribute.cs
- RootBuilder.cs
- XPathSelfQuery.cs
- PowerStatus.cs
- XmlExtensionFunction.cs
- DataGridViewHeaderCell.cs
- TextFragmentEngine.cs
- smtppermission.cs
- MarginsConverter.cs
- StructureChangedEventArgs.cs
- CodeIdentifiers.cs
- HttpHandlersSection.cs
- TableAutomationPeer.cs
- LockedAssemblyCache.cs
- CodeDomConfigurationHandler.cs
- BufferedMessageData.cs
- MethodToken.cs
- BuilderInfo.cs
- Unit.cs
- DocumentViewerBase.cs
- TemplateLookupAction.cs
- ParallelEnumerableWrapper.cs
- ArrayList.cs
- GridViewEditEventArgs.cs
- PageCatalogPart.cs
- ValidationErrorCollection.cs
- ToolBarButtonDesigner.cs
- SqlDependency.cs
- DataServiceExpressionVisitor.cs
- HuffmanTree.cs
- X509SecurityToken.cs
- SoapMessage.cs
- FileDialogPermission.cs
- CodeBinaryOperatorExpression.cs
- NameValuePermission.cs
- ConnectivityStatus.cs
- FormsAuthenticationTicket.cs
- EntityReference.cs
- DoWorkEventArgs.cs
- SeekStoryboard.cs
- SplitterEvent.cs
- InterleavedZipPartStream.cs
- TimeoutException.cs
- ConfigurationManagerHelper.cs
- BuildResult.cs
- EvidenceBase.cs
- AlternateView.cs
- ProfileElement.cs
- SmtpClient.cs
- SmiMetaData.cs
- Transactions.cs
- CodeGenerationManager.cs
- ProgressChangedEventArgs.cs
- FlagsAttribute.cs
- StorageInfo.cs
- NumberFunctions.cs
- DataMisalignedException.cs
- AssemblyInfo.cs
- TablePatternIdentifiers.cs
- BrushConverter.cs