System.Reflection.ExceptionHandlingClause.cs

ylbtech-System.Reflection.ExceptionHandlingClause.cs

 

1. Back to top
1、
#regionassembler mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
 // C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ .NETFramework \ v4.6.1 \ mscorlib.dll 
#endregion 

using System.Runtime.InteropServices; 

namespace System.Reflection 
{ 
    // 
    // Summary:
     //      Indicates the clause in the structured exception handling block. 
    [ComVisible ( true )]
     public  class ExceptionHandlingClause 
    { 
        // 
        // Abstract:
         //      Initialize a new instance of the System.Reflection.ExceptionHandlingClause class. 
        protected ExceptionHandlingClause ();

        // 
        // Summary:
         //      Get a value indicating the exception clause, finally clause, type filter clause, or user filter clause.
        // 
        // Return result:
         //      System.Reflection.ExceptionHandlingClauseOptions value, which indicates what kind of operation the clause performs. 
        public  virtual ExceptionHandlingClauseOptions Flags { get ;}
         // 
        // Abstract:
         //      This method, in bytes, includes the offset within the try block of this exception handling clause.
        // 
        // Return result:
         //      An integer representing the method, in bytes, including the offset within the try block of this exception handling clause. 
        public  virtual  int TryOffset { get ;}
         // 
        //Summary:
         //      Total length, in bytes, including the try block of this exception handling clause.
        // 
        // Return result:
         //      Total length, in bytes, including the try block of this exception handling clause. 
        public  virtual  int TryLength { get ;}
         // 
        // Abstract:
         //      Get the offset in bytes of this exception handling clause in the method body.
        // 
        // Return result:
         //      An integer representing the offset within the exception handling clause in the method body in bytes. 
        public  virtual  int HandlerOffset { get ;}
         // 
        // Abstract:
         //      Get the length of the body of this exception handling clause in bytes.
        // 
        //Return result:
         //      An integer representing the length of the MSIL of the body of this exception handling clause of the form, in bytes. 
        public  virtual  int HandlerLength { get ;}
         // 
        // Abstract:
         //      Get the offset of the filter code provided by the user in the method body expressed in bytes.
        // 
        // Return result:
         //      In the method body, the offset of the user-supplied filter code in bytes. The value of this property has no meaning, if System.Reflection.ExceptionHandlingClause.Flags
         //      any value other than the property System.Reflection.ExceptionHandlingClauseOptions.Filter.
        // 
        // Exception:
         //    T: System.InvalidOperationException:
         // The      offset cannot be obtained because the exception handling clause is not a filter. 
        public virtual  int FilterOffset { get ;}
         // 
        // Summary:
         //      Get the type of exception handled by this clause.
        // 
        // Return result:
         //      A System.Type object that represents the type of exception handled by this clause, or null if System.Reflection.ExceptionHandlingClause.Flags
         // The      property is System.Reflection.ExceptionHandlingClauseOptions.Filter or System. Reflection.ExceptionHandlingClauseOptions.Finally.
        // 
        // Exception:
         //    T: System.InvalidOperationException:
         //      Invalid use of attributes of the current state of the object. 
        public  virtual Type CatchType { get ;}

        // 
        // Summary:
         //      String representation of the exception handling clause.
        // 
        // Return result:
         //      A string that lists the corresponding attribute value of the filter clause type. 
        public  override  string ToString (); 
    } 
}
2、
2. Back to top
 
3. Back to top
 
4. Back to top
 
5. Back to top
 
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise Reserves the right to pursue legal responsibility.

Guess you like

Origin www.cnblogs.com/storebook/p/12677639.html