Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / ExceptionValidationRule.cs / 2 / ExceptionValidationRule.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // ExceptionValidationRule is used when a ValidationError is the result of an Exception as // there is no actual ValidationRule. // // // See specs at [....]/connecteddata/M5%20Specs/Validation.mht // // History: // 1/12/2005 [....]: created. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Globalization; using System.Windows.Controls; namespace System.Windows.Controls { ////// ExceptionValidationRule can be added to the ValidationRulesCollection of a Binding /// or MultiBinding to indicate that Exceptions that occur during UpdateSource should /// be considered ValidationErrors /// public sealed class ExceptionValidationRule : ValidationRule { ////// ExceptionValidationRule ctor. /// public ExceptionValidationRule() { } ////// Validate is called when Data binding is updating /// public override ValidationResult Validate(object value, CultureInfo cultureInfo) { return ValidationResult.ValidResult; } internal static readonly ExceptionValidationRule Instance = new ExceptionValidationRule(); } } // 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
- Query.cs
- Enum.cs
- TrustManagerMoreInformation.cs
- TileBrush.cs
- BinaryObjectWriter.cs
- QilLiteral.cs
- RequestQueryProcessor.cs
- KerberosTicketHashIdentifierClause.cs
- ResourceManagerWrapper.cs
- SecurityUtils.cs
- KeyBinding.cs
- FrameworkContextData.cs
- SQLUtility.cs
- TripleDES.cs
- SqlDataSourceEnumerator.cs
- CodeSubDirectory.cs
- APCustomTypeDescriptor.cs
- TemplateField.cs
- Command.cs
- XmlAnyElementAttribute.cs
- OracleConnectionString.cs
- TaskDesigner.cs
- DiscoveryClientReferences.cs
- ClassDataContract.cs
- BaseEntityWrapper.cs
- FixedPage.cs
- FrameworkEventSource.cs
- ToolStripItemBehavior.cs
- MimePart.cs
- Delay.cs
- ThousandthOfEmRealDoubles.cs
- ChtmlCalendarAdapter.cs
- AnnotationService.cs
- IteratorDescriptor.cs
- WinEventTracker.cs
- DataGridViewBand.cs
- WebContext.cs
- Stopwatch.cs
- EntityCommand.cs
- ImageSourceConverter.cs
- OrCondition.cs
- PropertyItemInternal.cs
- CallInfo.cs
- AutomationEvent.cs
- ComponentDispatcherThread.cs
- MediaTimeline.cs
- FormClosingEvent.cs
- PropertyItemInternal.cs
- BuildProviderCollection.cs
- ThreadStaticAttribute.cs
- DesignerTransactionCloseEvent.cs
- WorkflowOperationErrorHandler.cs
- ActivityTypeDesigner.xaml.cs
- IntegerFacetDescriptionElement.cs
- Pts.cs
- Empty.cs
- ValueExpressions.cs
- AsymmetricSignatureFormatter.cs
- WrapperEqualityComparer.cs
- HybridDictionary.cs
- RequestNavigateEventArgs.cs
- XmlnsDictionary.cs
- ResourceIDHelper.cs
- RegexStringValidator.cs
- SRDisplayNameAttribute.cs
- SecurityPermission.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- MemberProjectionIndex.cs
- CultureTableRecord.cs
- X509Utils.cs
- QueryOperationResponseOfT.cs
- XamlPointCollectionSerializer.cs
- SimplePropertyEntry.cs
- XmlElementCollection.cs
- SourceElementsCollection.cs
- IHttpResponseInternal.cs
- FileNameEditor.cs
- UnauthorizedWebPart.cs
- ConfigurationElement.cs
- RTLAwareMessageBox.cs
- FixedHighlight.cs
- ChtmlTextBoxAdapter.cs
- ButtonChrome.cs
- DataGridViewRowPrePaintEventArgs.cs
- XmlCharacterData.cs
- ping.cs
- PrinterUnitConvert.cs
- CryptoConfig.cs
- AppSettingsReader.cs
- Itemizer.cs
- BoolLiteral.cs
- DbResourceAllocator.cs
- LicenseManager.cs
- XmlExtensionFunction.cs
- XPathArrayIterator.cs
- TimeSpanMinutesConverter.cs
- ObjectConverter.cs
- WebContentFormatHelper.cs
- InstanceNormalEvent.cs
- InstanceNormalEvent.cs