The Labs \ Source Viewer \ SSCLI \ System.ComponentModel \ IDataErrorInfo

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IDataErrorInfo.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.ComponentModel
  16. {
  17.    
  18.     using System;
  19.    
  20.     /// <devdoc>
  21.     /// </devdoc>
  22.     // suppose that you have some data that can be indexed by use of string:
  23.     // then there are two types of errors:
  24.     // 1. an error for each piece of data that can be indexed
  25.     // 2. an error that is valid on the entire data
  26.     //
  27.     public interface IDataErrorInfo
  28.     {
  29.        
  30.         /// <devdoc>
  31.         /// </devdoc>
  32.         string this[string columnName]
  33.         {
  34.             get;
  35.         }
  36.         /// <devdoc>
  37.         /// <para>[To be supplied.]</para>
  38.         /// </devdoc>
  39.         string Error {
  40.             get;
  41.         }
  42.     }
  43. }

Developer Fusion