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
- ExpandCollapseProviderWrapper.cs
- ComponentCommands.cs
- SecurityCriticalDataForSet.cs
- TagPrefixAttribute.cs
- SyntaxCheck.cs
- SequenceRange.cs
- Timer.cs
- UnlockInstanceAsyncResult.cs
- ObjectAnimationUsingKeyFrames.cs
- Positioning.cs
- WorkflowMarkupSerializerMapping.cs
- BamlRecordHelper.cs
- TextEditorCopyPaste.cs
- FontUnitConverter.cs
- SqlRowUpdatingEvent.cs
- XmlILModule.cs
- AdornerPresentationContext.cs
- OdbcConnectionPoolProviderInfo.cs
- PassportPrincipal.cs
- IntMinMaxAggregationOperator.cs
- ProcessHostServerConfig.cs
- TagMapInfo.cs
- XmlSchemaNotation.cs
- XmlSiteMapProvider.cs
- MetadataCacheItem.cs
- SizeF.cs
- StringFunctions.cs
- Button.cs
- ImageMap.cs
- EnumValAlphaComparer.cs
- Int16Animation.cs
- InlineCollection.cs
- RequestCachingSection.cs
- WebPartMinimizeVerb.cs
- MultilineStringConverter.cs
- RC2.cs
- HttpConfigurationContext.cs
- PrintDocument.cs
- Perspective.cs
- ExpressionConverter.cs
- ComPlusTypeLoader.cs
- Zone.cs
- XmlDesigner.cs
- DecimalFormatter.cs
- CommandEventArgs.cs
- FormsAuthenticationConfiguration.cs
- MDIWindowDialog.cs
- SmiGettersStream.cs
- CqlParser.cs
- RuntimeResourceSet.cs
- EnumerableRowCollection.cs
- MethodCallConverter.cs
- ErrorEventArgs.cs
- DataGridItemEventArgs.cs
- DeferredReference.cs
- ColorContextHelper.cs
- DbQueryCommandTree.cs
- Pair.cs
- DbBuffer.cs
- ResourcesBuildProvider.cs
- Events.cs
- SoapReflectionImporter.cs
- DriveNotFoundException.cs
- XmlExpressionDumper.cs
- EntityParameterCollection.cs
- XslTransform.cs
- Constants.cs
- ScriptingProfileServiceSection.cs
- ContextProperty.cs
- UDPClient.cs
- HostExecutionContextManager.cs
- GatewayIPAddressInformationCollection.cs
- HScrollProperties.cs
- DataControlCommands.cs
- EncoderBestFitFallback.cs
- DelegatedStream.cs
- VerificationException.cs
- WebEventCodes.cs
- BindingCompleteEventArgs.cs
- TableRowCollection.cs
- FontCacheUtil.cs
- StrokeRenderer.cs
- MsdtcClusterUtils.cs
- SqlMethodTransformer.cs
- XmlDataLoader.cs
- OleDbDataReader.cs
- Source.cs
- RadioButtonStandardAdapter.cs
- SimpleWorkerRequest.cs
- DataGridViewTextBoxCell.cs
- XmlSchemaImport.cs
- AssemblyNameProxy.cs
- TextDpi.cs
- PageAsyncTaskManager.cs
- ColumnReorderedEventArgs.cs
- CodeDomSerializationProvider.cs
- PreservationFileWriter.cs
- SelectionEditingBehavior.cs
- XmlAnyElementAttributes.cs
- _NtlmClient.cs