14 private int m_tryOffset;
16 private int m_tryLength;
18 private int m_handlerOffset;
20 private int m_handlerLength;
22 private int m_catchMetadataToken;
24 private int m_filterOffset;
57 return m_filterOffset;
73 if (!MetadataToken.IsNullToken(m_catchMetadataToken))
76 Module module = (declaringType ==
null) ? m_methodBody.m_methodBase.
Module : declaringType.
Module;
94 return string.Format(
CultureInfo.
CurrentUICulture,
"Flags={0}, TryOffset={1}, TryLength={2}, HandlerOffset={3}, HandlerLength={4}, CatchType={5}",
Flags,
TryOffset,
TryLength,
HandlerOffset,
HandlerLength,
CatchType);
98 return string.Format(
CultureInfo.
CurrentUICulture,
"Flags={0}, TryOffset={1}, TryLength={2}, HandlerOffset={3}, HandlerLength={4}, FilterOffset={5}",
Flags,
TryOffset,
TryLength,
HandlerOffset,
HandlerLength,
FilterOffset);
100 return string.Format(
CultureInfo.
CurrentUICulture,
"Flags={0}, TryOffset={1}, TryLength={2}, HandlerOffset={3}, HandlerLength={4}",
Flags,
TryOffset,
TryLength,
HandlerOffset,
HandlerLength);
Performs reflection on a module.
virtual Type??? CatchType
Gets the type of exception handled by this clause.
abstract Type DeclaringType
Gets the class that declares this member.
Discovers the attributes of a method and provides access to method metadata.
virtual int FilterOffset
Gets the offset within the method body, in bytes, of the user-supplied filter code.
virtual int HandlerOffset
Gets the offset within the method body, in bytes, of this exception-handling clause.
virtual int HandlerLength
Gets the length, in bytes, of the body of this exception-handling clause.
static CultureInfo CurrentUICulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the current user interface...
Provides access to the metadata and MSIL for the body of a method.
virtual Type [] GetGenericArguments()
Returns an array of T:System.Type objects that represent the type arguments of a closed generic type ...
Provides information about, and means to manipulate, the current environment and platform....
override string ToString()
A string representation of the exception-handling clause.
virtual int TryOffset
The offset within the method, in bytes, of the try block that includes this exception-handling clause...
Type ResolveType(int metadataToken)
Returns the type identified by the specified metadata token.
Represents type declarations: class types, interface types, array types, value types,...
virtual int TryLength
The total length, in bytes, of the try block that includes this exception-handling clause.
virtual Module Module
Gets the module in which the type that declares the member represented by the current T:System....
The exception that is thrown when a method call is invalid for the object's current state.
Represents a clause in a structured exception-handling block.
ExceptionHandlingClauseOptions
Identifies kinds of exception-handling clauses.
virtual Type [] GetGenericArguments()
Returns an array of T:System.Type objects that represent the type arguments of a generic method or th...
abstract new Module Module
Gets the module (the DLL) in which the current T:System.Type is defined.
Provides information about a specific culture (called a locale for unmanaged code development)....
virtual ExceptionHandlingClauseOptions Flags
Gets a value indicating whether this exception-handling clause is a finally clause,...
ExceptionHandlingClause()
Initializes a new instance of the T:System.Reflection.ExceptionHandlingClause class.