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
- WindowsTreeView.cs
- XmlSchemaSimpleContent.cs
- OleDbConnectionFactory.cs
- PackageRelationshipCollection.cs
- PropertyItem.cs
- RecommendedAsConfigurableAttribute.cs
- DBCommand.cs
- ConfigXmlCDataSection.cs
- EnumType.cs
- remotingproxy.cs
- OdbcConnectionOpen.cs
- ReferentialConstraint.cs
- ConfigurationSettings.cs
- IndexingContentUnit.cs
- EmbossBitmapEffect.cs
- DesignerOptionService.cs
- XmlException.cs
- XmlnsDictionary.cs
- CreateUserErrorEventArgs.cs
- Interlocked.cs
- DispatcherEventArgs.cs
- DataGridAddNewRow.cs
- keycontainerpermission.cs
- RolePrincipal.cs
- DetailsViewCommandEventArgs.cs
- TableLayoutSettings.cs
- QueryOutputWriterV1.cs
- SafeEventLogWriteHandle.cs
- AliasGenerator.cs
- EdmError.cs
- _NegoState.cs
- WeakHashtable.cs
- ObjectListCommand.cs
- webeventbuffer.cs
- FlowNode.cs
- XamlFigureLengthSerializer.cs
- TransformValueSerializer.cs
- OdbcConnectionStringbuilder.cs
- assertwrapper.cs
- TrustLevelCollection.cs
- CustomSignedXml.cs
- ContentPropertyAttribute.cs
- IisTraceWebEventProvider.cs
- Expression.DebuggerProxy.cs
- ButtonBaseDesigner.cs
- VisualTreeHelper.cs
- SchemaTableColumn.cs
- EditorResources.cs
- MetadataWorkspace.cs
- OracleLob.cs
- ComplexBindingPropertiesAttribute.cs
- XmlSchemaDocumentation.cs
- Matrix3DConverter.cs
- EditingCommands.cs
- TCPListener.cs
- HorizontalAlignConverter.cs
- AttributeParameterInfo.cs
- NullReferenceException.cs
- LogManagementAsyncResult.cs
- FreezableDefaultValueFactory.cs
- SchemaElementLookUpTable.cs
- ProfilePropertySettingsCollection.cs
- ToolStripPanelCell.cs
- ObjectDataSourceChooseMethodsPanel.cs
- oledbconnectionstring.cs
- MailMessageEventArgs.cs
- XmlILStorageConverter.cs
- Visual3D.cs
- VectorAnimationUsingKeyFrames.cs
- SecureEnvironment.cs
- DataGridViewCellConverter.cs
- FunctionQuery.cs
- ValidationRule.cs
- ConstraintCollection.cs
- TraceLog.cs
- PageThemeParser.cs
- DocumentOrderQuery.cs
- HttpDictionary.cs
- WebConfigurationFileMap.cs
- XmlTextAttribute.cs
- GuidConverter.cs
- LocatorManager.cs
- Exceptions.cs
- WindowsProgressbar.cs
- HMACSHA256.cs
- FrameSecurityDescriptor.cs
- WsatServiceAddress.cs
- LocatorPart.cs
- TableNameAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- WebPartConnectionsCancelEventArgs.cs
- MULTI_QI.cs
- IndentTextWriter.cs
- Rect3D.cs
- SingleAnimationBase.cs
- DataRecordInternal.cs
- EntityContainerRelationshipSetEnd.cs
- MapPathBasedVirtualPathProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BufferedReadStream.cs