Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FileDialogCustomPlacesCollection.cs
- InkPresenter.cs
- MessagePropertyVariants.cs
- FrameworkContentElement.cs
- XmlObjectSerializerContext.cs
- EdmError.cs
- TextEncodedRawTextWriter.cs
- BindingsCollection.cs
- ListDesigner.cs
- HMACSHA512.cs
- ZipIOLocalFileHeader.cs
- TrackingMemoryStream.cs
- XmlSchemaSimpleContentExtension.cs
- TableLayoutPanelDesigner.cs
- DeferredSelectedIndexReference.cs
- TypeLoadException.cs
- BooleanProjectedSlot.cs
- DocumentApplicationJournalEntry.cs
- SizeConverter.cs
- PauseStoryboard.cs
- HyperLinkField.cs
- MetaDataInfo.cs
- PageTextBox.cs
- TableLayoutStyleCollection.cs
- UnsafeNativeMethods.cs
- StringAnimationBase.cs
- ByteAnimation.cs
- ManagementOperationWatcher.cs
- DetailsViewDeleteEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- WsatServiceAddress.cs
- DesignTimeHTMLTextWriter.cs
- TransactionScope.cs
- ConditionedDesigner.cs
- ResourceSet.cs
- Composition.cs
- ScriptingAuthenticationServiceSection.cs
- GenericRootAutomationPeer.cs
- SystemDropShadowChrome.cs
- PanelDesigner.cs
- DBAsyncResult.cs
- PartialTrustHelpers.cs
- ValueUtilsSmi.cs
- InstanceDataCollection.cs
- ProfileBuildProvider.cs
- xml.cs
- ToolStripDropDownButton.cs
- TreePrinter.cs
- LoadedOrUnloadedOperation.cs
- SmtpLoginAuthenticationModule.cs
- ResourceSet.cs
- NativeMethods.cs
- XmlSchemaCollection.cs
- ColorConverter.cs
- cookie.cs
- AnnotationComponentChooser.cs
- SymLanguageType.cs
- AbandonedMutexException.cs
- _NestedMultipleAsyncResult.cs
- Rijndael.cs
- XmlTextAttribute.cs
- InternalEnumValidatorAttribute.cs
- XmlUtil.cs
- _FtpDataStream.cs
- BitmapVisualManager.cs
- SizeLimitedCache.cs
- SortDescriptionCollection.cs
- WebPartEditorApplyVerb.cs
- CodeExpressionCollection.cs
- SecurityChannelListener.cs
- KeyboardNavigation.cs
- XmlElement.cs
- ReadOnlyDictionary.cs
- SecurityManager.cs
- WebUtility.cs
- SoapEnvelopeProcessingElement.cs
- ListControlConvertEventArgs.cs
- PointHitTestParameters.cs
- ProjectionNode.cs
- DataSourceCache.cs
- SecurityKeyType.cs
- HatchBrush.cs
- Sequence.cs
- ColumnResizeUndoUnit.cs
- SynthesizerStateChangedEventArgs.cs
- CompilerCollection.cs
- XPathMultyIterator.cs
- ArraySubsetEnumerator.cs
- WinCategoryAttribute.cs
- ImageSourceValueSerializer.cs
- ToolbarAUtomationPeer.cs
- UInt32.cs
- CornerRadiusConverter.cs
- HttpRequest.cs
- IIS7UserPrincipal.cs
- ManifestSignedXml.cs
- FontNameEditor.cs
- SettingsSection.cs
- WindowsMenu.cs
- SyndicationSerializer.cs