Open sandboxFocus

Method ExcludeInterceptors

ExcludeInterceptors(IQuery<ICompilation>, bool)

Excludes from interception, or includes again, the sites of the whole project.

Declaration
public static void ExcludeInterceptors(this IQuery<ICompilation> query, bool exclude = true)
Parameters
Type Name Description
IQuery<ICompilation> query

The query that selects the compilation, for instance the amender of a project fabric.

bool exclude

true to exclude the sites; false to include them again.

ExcludeInterceptors(IQuery<INamespace>, bool)

Excludes from interception, or includes again, the sites of the selected namespaces.

Declaration
public static void ExcludeInterceptors(this IQuery<INamespace> query, bool exclude = true)
Parameters
Type Name Description
IQuery<INamespace> query

The query that selects the namespaces, for instance the amender of a namespace fabric.

bool exclude

true to exclude the sites; false to include them again.

ExcludeInterceptors(IQuery<INamedType>, bool)

Excludes from interception, or includes again, the sites of the selected types, including their members and nested types.

Declaration
public static void ExcludeInterceptors(this IQuery<INamedType> query, bool exclude = true)
Parameters
Type Name Description
IQuery<INamedType> query

The query that selects the types, for instance the amender of a type fabric.

bool exclude

true to exclude the sites; false to include them again.

ExcludeInterceptors(IQuery<IMethod>, bool)

Excludes from interception, or includes again, the sites of the selected methods, including their lambdas and local functions.

Declaration
public static void ExcludeInterceptors(this IQuery<IMethod> query, bool exclude = true)
Parameters
Type Name Description
IQuery<IMethod> query

The query that selects the methods.

bool exclude

true to exclude the sites; false to include them again.

ExcludeInterceptors(IQuery<IConstructor>, bool)

Excludes from interception, or includes again, the sites of the selected constructors, including their initializers.

Declaration
public static void ExcludeInterceptors(this IQuery<IConstructor> query, bool exclude = true)
Parameters
Type Name Description
IQuery<IConstructor> query

The query that selects the constructors.

bool exclude

true to exclude the sites; false to include them again.

ExcludeInterceptors(IQuery<IFieldOrPropertyOrIndexer>, bool)

Excludes from interception, or includes again, the sites of the selected fields, properties or indexers, including their initializers and accessors.

Declaration
public static void ExcludeInterceptors(this IQuery<IFieldOrPropertyOrIndexer> query, bool exclude = true)
Parameters
Type Name Description
IQuery<IFieldOrPropertyOrIndexer> query

The query that selects the fields, properties or indexers.

bool exclude

true to exclude the sites; false to include them again.

ExcludeInterceptors(IQuery<IEvent>, bool)

Excludes from interception, or includes again, the sites of the selected events, including their initializers and accessors.

Declaration
public static void ExcludeInterceptors(this IQuery<IEvent> query, bool exclude = true)
Parameters
Type Name Description
IQuery<IEvent> query

The query that selects the events.

bool exclude

true to exclude the sites; false to include them again.