The Labs \ Source Viewer \ SSCLI \ System.Diagnostics.SymbolStore \ ISymbolDocument

  1. // ==++==
  2. //
  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. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Class:  ISymbolDocument
  18. **
  19. **
  20. ** Represents a document referenced by a symbol store. A document is
  21. ** defined by a URL and a document type GUID. Using the document type
  22. ** GUID and the URL, one can locate the document however it is
  23. ** stored. Document source can optionally be stored in the symbol
  24. ** store. This interface also provides access to that source if it is
  25. ** present.
  26. **
  27. **
  28. ===========================================================*/
  29. namespace System.Diagnostics.SymbolStore
  30. {
  31.    
  32.     using System;
  33.    
  34.     // Interface does not need to be marked with the serializable attribute
  35.     [System.Runtime.InteropServices.ComVisible(true)]
  36.     public interface ISymbolDocument
  37.     {
  38.         // Properties of the document.
  39.         string URL {
  40.             get;
  41.         }
  42.         Guid DocumentType {
  43.             get;
  44.         }
  45.        
  46.         // Language of the document.
  47.         Guid Language {
  48.             get;
  49.         }
  50.         Guid LanguageVendor {
  51.             get;
  52.         }
  53.        
  54.         // Check sum information.
  55.         Guid CheckSumAlgorithmId {
  56.             get;
  57.         }
  58.         byte[] GetCheckSum();
  59.        
  60.         // Given a line in this document that may or may not be a sequence
  61.         // point, return the closest line that is a sequence point.
  62.         int FindClosestLine(int line);
  63.        
  64.         // Access to embedded source.
  65.         bool HasEmbeddedSource {
  66.             get;
  67.         }
  68.         int SourceLength {
  69.             get;
  70.         }
  71.         byte[] GetSourceRange(int startLine, int startColumn, int endLine, int endColumn);
  72.     }
  73. }

Developer Fusion