1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="ExceptionHandlingClause" FullName="System.Reflection.ExceptionHandlingClause">
3 <TypeSignature Language="C#" Value="public class ExceptionHandlingClause" />
4 <TypeSignature Language="ILAsm" Value=".class public sequential ansi beforefieldinit ExceptionHandlingClause extends System.Object" />
6 <AssemblyName>mscorlib</AssemblyName>
7 <AssemblyVersion>2.0.0.0</AssemblyVersion>
8 <AssemblyVersion>4.0.0.0</AssemblyVersion>
11 <BaseTypeName>System.Object</BaseTypeName>
16 <AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
20 <since version=".NET 2.0" />
22 <attribution license="cc4" from="Microsoft" modified="false" />
23 <para>The <see cref="T:System.Reflection.ExceptionHandlingClause" /> class provides information about the clauses in a try…catch…finally block (Try…Catch…Finally in Visual Basic). To get a list of exception-handling clauses in a method, obtain a <see cref="T:System.Reflection.MethodInfo" /> that represents the method. Use the <see cref="M:System.Reflection.MethodBase.GetMethodBody" /> method to obtain a <see cref="T:System.Reflection.MethodBody" /> object, and then use the <see cref="P:System.Reflection.MethodBody.ExceptionHandlingClauses" /> property to get the list of clauses.</para>
24 <block subset="none" type="note">
25 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
29 <attribution license="cc4" from="Microsoft" modified="false" />
30 <para>Represents a clause in a structured exception-handling block.</para>
34 <Member MemberName=".ctor">
35 <MemberSignature Language="C#" Value="protected ExceptionHandlingClause ();" />
36 <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
37 <MemberType>Constructor</MemberType>
39 <AssemblyVersion>4.0.0.0</AssemblyVersion>
44 <attribution license="cc4" from="Microsoft" modified="false" />
45 <para>This constructor is invoked by derived classes during the construction of <see cref="T:System.Reflection.ExceptionHandlingClause" /> objects.</para>
48 <attribution license="cc4" from="Microsoft" modified="false" />
49 <para>Initializes a new instance of the <see cref="T:System.Reflection.ExceptionHandlingClause" /> class.</para>
53 <Member MemberName="CatchType">
54 <MemberSignature Language="C#" Value="public virtual Type CatchType { get; }" />
55 <MemberSignature Language="ILAsm" Value=".property instance class System.Type CatchType" />
56 <MemberType>Property</MemberType>
58 <AssemblyVersion>2.0.0.0</AssemblyVersion>
59 <AssemblyVersion>4.0.0.0</AssemblyVersion>
62 <ReturnType>System.Type</ReturnType>
65 <value>To be added.</value>
66 <since version=".NET 2.0" />
68 <attribution license="cc4" from="Microsoft" modified="false" />
69 <block subset="none" type="note">
70 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
74 <attribution license="cc4" from="Microsoft" modified="false" />
75 <para>Gets the type of exception handled by this clause.</para>
79 <Member MemberName="FilterOffset">
80 <MemberSignature Language="C#" Value="public virtual int FilterOffset { get; }" />
81 <MemberSignature Language="ILAsm" Value=".property instance int32 FilterOffset" />
82 <MemberType>Property</MemberType>
84 <AssemblyVersion>2.0.0.0</AssemblyVersion>
85 <AssemblyVersion>4.0.0.0</AssemblyVersion>
88 <ReturnType>System.Int32</ReturnType>
91 <value>To be added.</value>
92 <since version=".NET 2.0" />
94 <attribution license="cc4" from="Microsoft" modified="false" />
95 <para>A filter clause contains user-supplied Microsoft intermediate language (MSIL) that determines whether an exception is handled by this clause. For example, any clause containing the Visual Basic When keyword is a <see cref="F:System.Reflection.ExceptionHandlingClauseOptions.Filter" /> clause.</para>
96 <block subset="none" type="note">
97 <para>Working with exception-handling clauses requires a thorough understanding of metadata and MSIL instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
101 <attribution license="cc4" from="Microsoft" modified="false" />
102 <para>Gets the offset within the method body, in bytes, of the user-supplied filter code.</para>
106 <Member MemberName="Flags">
107 <MemberSignature Language="C#" Value="public virtual System.Reflection.ExceptionHandlingClauseOptions Flags { get; }" />
108 <MemberSignature Language="ILAsm" Value=".property instance valuetype System.Reflection.ExceptionHandlingClauseOptions Flags" />
109 <MemberType>Property</MemberType>
111 <AssemblyVersion>2.0.0.0</AssemblyVersion>
112 <AssemblyVersion>4.0.0.0</AssemblyVersion>
115 <ReturnType>System.Reflection.ExceptionHandlingClauseOptions</ReturnType>
118 <value>To be added.</value>
119 <since version=".NET 2.0" />
121 <attribution license="cc4" from="Microsoft" modified="false" />
122 <block subset="none" type="note">
123 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
127 <attribution license="cc4" from="Microsoft" modified="false" />
128 <para>Gets a value indicating whether this exception-handling clause is a finally clause, a type-filtered clause, or a user-filtered clause.</para>
132 <Member MemberName="HandlerLength">
133 <MemberSignature Language="C#" Value="public virtual int HandlerLength { get; }" />
134 <MemberSignature Language="ILAsm" Value=".property instance int32 HandlerLength" />
135 <MemberType>Property</MemberType>
137 <AssemblyVersion>2.0.0.0</AssemblyVersion>
138 <AssemblyVersion>4.0.0.0</AssemblyVersion>
141 <ReturnType>System.Int32</ReturnType>
144 <value>To be added.</value>
145 <since version=".NET 2.0" />
147 <attribution license="cc4" from="Microsoft" modified="false" />
148 <block subset="none" type="note">
149 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
153 <attribution license="cc4" from="Microsoft" modified="false" />
154 <para>Gets the length, in bytes, of the body of this exception-handling clause.</para>
158 <Member MemberName="HandlerOffset">
159 <MemberSignature Language="C#" Value="public virtual int HandlerOffset { get; }" />
160 <MemberSignature Language="ILAsm" Value=".property instance int32 HandlerOffset" />
161 <MemberType>Property</MemberType>
163 <AssemblyVersion>2.0.0.0</AssemblyVersion>
164 <AssemblyVersion>4.0.0.0</AssemblyVersion>
167 <ReturnType>System.Int32</ReturnType>
170 <value>To be added.</value>
171 <since version=".NET 2.0" />
173 <attribution license="cc4" from="Microsoft" modified="false" />
174 <block subset="none" type="note">
175 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
179 <attribution license="cc4" from="Microsoft" modified="false" />
180 <para>Gets the offset within the method body, in bytes, of this exception-handling clause.</para>
184 <Member MemberName="ToString">
185 <MemberSignature Language="C#" Value="public override string ToString ();" />
186 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
187 <MemberType>Method</MemberType>
189 <AssemblyVersion>2.0.0.0</AssemblyVersion>
190 <AssemblyVersion>4.0.0.0</AssemblyVersion>
193 <ReturnType>System.String</ReturnType>
197 <remarks>To be added.</remarks>
199 <attribution license="cc4" from="Microsoft" modified="false" />
200 <para>A string representation of the exception-handling clause.</para>
203 <attribution license="cc4" from="Microsoft" modified="false" />
204 <para>A string that lists appropriate property values for the filter clause type.</para>
208 <Member MemberName="TryLength">
209 <MemberSignature Language="C#" Value="public virtual int TryLength { get; }" />
210 <MemberSignature Language="ILAsm" Value=".property instance int32 TryLength" />
211 <MemberType>Property</MemberType>
213 <AssemblyVersion>2.0.0.0</AssemblyVersion>
214 <AssemblyVersion>4.0.0.0</AssemblyVersion>
217 <ReturnType>System.Int32</ReturnType>
220 <value>To be added.</value>
221 <since version=".NET 2.0" />
223 <attribution license="cc4" from="Microsoft" modified="false" />
224 <para>An integer that represents the total length, in bytes, of the try block that includes this exception-handling clause.</para>
225 <block subset="none" type="note">
226 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
230 <attribution license="cc4" from="Microsoft" modified="false" />
231 <para>The total length, in bytes, of the try block that includes this exception-handling clause.</para>
235 <Member MemberName="TryOffset">
236 <MemberSignature Language="C#" Value="public virtual int TryOffset { get; }" />
237 <MemberSignature Language="ILAsm" Value=".property instance int32 TryOffset" />
238 <MemberType>Property</MemberType>
240 <AssemblyVersion>2.0.0.0</AssemblyVersion>
241 <AssemblyVersion>4.0.0.0</AssemblyVersion>
244 <ReturnType>System.Int32</ReturnType>
247 <value>To be added.</value>
248 <since version=".NET 2.0" />
250 <attribution license="cc4" from="Microsoft" modified="false" />
251 <block subset="none" type="note">
252 <para>Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para>
256 <attribution license="cc4" from="Microsoft" modified="false" />
257 <para>The offset within the method, in bytes, of the try block that includes this exception-handling clause.</para>