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
- TableRow.cs
- SqlRewriteScalarSubqueries.cs
- TemplateControlCodeDomTreeGenerator.cs
- IfElseDesigner.xaml.cs
- AnnotationAuthorChangedEventArgs.cs
- SafeFileHandle.cs
- WebPartConnectionsCancelEventArgs.cs
- ConstraintConverter.cs
- BaseTemplateParser.cs
- DataGridCellInfo.cs
- HtmlFormWrapper.cs
- Stack.cs
- DashStyle.cs
- TypeSystemHelpers.cs
- SingleSelectRootGridEntry.cs
- Dynamic.cs
- XmlSchemaCollection.cs
- BuildResult.cs
- ButtonBase.cs
- ScanQueryOperator.cs
- XpsSerializationException.cs
- CompiledELinqQueryState.cs
- DiscreteKeyFrames.cs
- Html32TextWriter.cs
- ISAPIRuntime.cs
- PropertyEmitter.cs
- BlobPersonalizationState.cs
- SignerInfo.cs
- FakeModelItemImpl.cs
- AppDomainFactory.cs
- WebPartCancelEventArgs.cs
- AttributeQuery.cs
- XsltContext.cs
- GroupQuery.cs
- HttpDictionary.cs
- ChildDocumentBlock.cs
- StyleBamlRecordReader.cs
- FacetDescription.cs
- IntellisenseTextBox.cs
- RewritingPass.cs
- DataControlPagerLinkButton.cs
- CssClassPropertyAttribute.cs
- handlecollector.cs
- CultureSpecificCharacterBufferRange.cs
- XmlLinkedNode.cs
- NavigateUrlConverter.cs
- CodeDirectoryCompiler.cs
- EncoderBestFitFallback.cs
- CryptographicAttribute.cs
- ISAPIWorkerRequest.cs
- Image.cs
- ToolStripMenuItem.cs
- MorphHelper.cs
- TrustLevelCollection.cs
- BooleanKeyFrameCollection.cs
- Positioning.cs
- PointValueSerializer.cs
- AspNetHostingPermission.cs
- DoubleCollectionConverter.cs
- GlyphTypeface.cs
- DriveInfo.cs
- Polygon.cs
- ElementNotEnabledException.cs
- GridViewDeletedEventArgs.cs
- AppModelKnownContentFactory.cs
- RelationshipManager.cs
- Operators.cs
- contentDescriptor.cs
- ByteAnimation.cs
- CompilerTypeWithParams.cs
- ComponentRenameEvent.cs
- GridPatternIdentifiers.cs
- ObjectQueryExecutionPlan.cs
- RecognitionEventArgs.cs
- ColumnCollection.cs
- QuaternionValueSerializer.cs
- AttachedAnnotation.cs
- CodeSubDirectoriesCollection.cs
- Int32RectConverter.cs
- StorageComplexTypeMapping.cs
- CacheAxisQuery.cs
- UnsafeCollabNativeMethods.cs
- CompositeKey.cs
- CheckoutException.cs
- Vector3DConverter.cs
- HandlerMappingMemo.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WindowsEditBox.cs
- Normalizer.cs
- SqlDataSourceStatusEventArgs.cs
- ErrorWrapper.cs
- AppDomainFactory.cs
- SupportingTokenSecurityTokenResolver.cs
- AccessViolationException.cs
- StringConverter.cs
- RequestQueue.cs
- KeyConstraint.cs
- InstancePersistenceEvent.cs
- ISAPIApplicationHost.cs
- PartialList.cs