The Labs \ Source Viewer \ SSCLI \ System.ComponentModel.Design.Serialization \ IDesignerLoaderHost

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IDesignerLoaderHost.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.Design.Serialization
  16. {
  17.    
  18.     using System;
  19.     using System.Collections;
  20.     using System.ComponentModel.Design;
  21.    
  22.     /// <devdoc>
  23.     /// IDesignerLoaderHost. This is an extension of IDesignerHost that is passed
  24.     /// to the designer loader in the BeginLoad method. It is isolated from
  25.     /// IDesignerHost to emphasize that all loading and reloading of the design
  26.     /// document actually should be initiated by the designer loader, and not by
  27.     /// the designer host. However, the loader must inform the designer host that
  28.     /// it wishes to invoke a load or reload.
  29.     /// </devdoc>
  30.     public interface IDesignerLoaderHost : IDesignerHost
  31.     {
  32.        
  33.         /// <devdoc>
  34.         /// This is called by the designer loader to indicate that the load has
  35.         /// terminated. If there were errors, they should be passed in the errorCollection
  36.         /// as a collection of exceptions (if they are not exceptions the designer
  37.         /// loader host may just call ToString on them). If the load was successful then
  38.         /// errorCollection should either be null or contain an empty collection.
  39.         /// </devdoc>
  40.         void EndLoad(string baseClassName, bool successful, ICollection errorCollection);
  41.        
  42.         /// <devdoc>
  43.         /// This is called by the designer loader when it wishes to reload the
  44.         /// design document. The reload will happen immediately so the caller
  45.         /// should ensure that it is in a state where BeginLoad may be called again.
  46.         /// </devdoc>
  47.         void Reload();
  48.     }
  49. }

Developer Fusion