This documentation is archived and is not being maintained.

ExceptionHandlingClause.FilterOffset Property

Gets the offset within the method body, in bytes, of the user-supplied filter code.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual int FilterOffset { get; }

Property Value

Type: System.Int32
The offset within the method body, in bytes, of the user-supplied filter code. The value of this property has no meaning if the Flags property has any value other than ExceptionHandlingClauseOptions.Filter.


Cannot get the offset because the exception handling clause is not a filter.

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 ExceptionHandlingClauseOptions.Filter clause.


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 ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.