Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- NavigatorOutput.cs
- TextWriter.cs
- UTF7Encoding.cs
- VectorValueSerializer.cs
- KeyConstraint.cs
- ServiceDeploymentInfo.cs
- DataGridCell.cs
- ProviderCommandInfoUtils.cs
- EventLogWatcher.cs
- HtmlUtf8RawTextWriter.cs
- NavigationExpr.cs
- CompressStream.cs
- QueryStoreStatusRequest.cs
- EventProvider.cs
- ProtocolsConfiguration.cs
- SafeEventLogWriteHandle.cs
- DbQueryCommandTree.cs
- AppDomainShutdownMonitor.cs
- MimeMapping.cs
- ColorKeyFrameCollection.cs
- ImageKeyConverter.cs
- TemplatingOptionsDialog.cs
- ExceptionHandlers.cs
- StateMachineAction.cs
- TimeZone.cs
- CustomAttributeBuilder.cs
- TypeSystemProvider.cs
- SplitterPanelDesigner.cs
- OdbcException.cs
- SqlDataSourceSelectingEventArgs.cs
- ColorContextHelper.cs
- DesignBindingValueUIHandler.cs
- XmlDocumentType.cs
- WebBrowserNavigatedEventHandler.cs
- UIElement3D.cs
- SqlRemoveConstantOrderBy.cs
- LowerCaseStringConverter.cs
- TableDetailsRow.cs
- WindowsFont.cs
- Pair.cs
- Encoder.cs
- RegexRunner.cs
- RulePatternOps.cs
- GenericsInstances.cs
- FontDriver.cs
- ObjectDataSourceStatusEventArgs.cs
- ClickablePoint.cs
- StreamFormatter.cs
- LocalizationCodeDomSerializer.cs
- Stackframe.cs
- CompiledIdentityConstraint.cs
- HttpListenerResponse.cs
- DataRecord.cs
- XmlCollation.cs
- OrderingQueryOperator.cs
- SoapMessage.cs
- FileLogRecordHeader.cs
- PackageDigitalSignatureManager.cs
- LogArchiveSnapshot.cs
- Context.cs
- WebColorConverter.cs
- SqlNodeAnnotation.cs
- CustomErrorCollection.cs
- Identity.cs
- ArrangedElement.cs
- Hex.cs
- DnsPermission.cs
- ExecutionContext.cs
- _BasicClient.cs
- ConfigsHelper.cs
- ParseChildrenAsPropertiesAttribute.cs
- TemplateInstanceAttribute.cs
- SmtpNtlmAuthenticationModule.cs
- SessionEndingCancelEventArgs.cs
- SecurityKeyUsage.cs
- FlowPosition.cs
- FixedFlowMap.cs
- ProfileParameter.cs
- RuntimeIdentifierPropertyAttribute.cs
- __Filters.cs
- WebResourceUtil.cs
- MailWebEventProvider.cs
- WpfKnownTypeInvoker.cs
- SafeRegistryHandle.cs
- Bezier.cs
- ScrollPattern.cs
- LineBreakRecord.cs
- FontUnitConverter.cs
- BitmapEffect.cs
- ProcessRequestArgs.cs
- ObjectFullSpanRewriter.cs
- MetadataHelper.cs
- UrlPath.cs
- Polygon.cs
- BridgeDataRecord.cs
- QilNode.cs
- ToolStripGripRenderEventArgs.cs
- Mappings.cs
- ContentWrapperAttribute.cs
- PrintDialogException.cs