Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetDefaultInterceptorFor Method (Type, ITypeInterceptor)

Interception.SetDefaultInterceptorFor Method (Type, ITypeInterceptor)

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

Set the interceptor for a type, regardless of what name is used to resolve the instances.

Namespace:  Microsoft.Practices.Unity.InterceptionExtension
Assembly:  Microsoft.Practices.Unity.Interception (in Microsoft.Practices.Unity.Interception.dll)

public Interception SetDefaultInterceptorFor(
	Type typeToIntercept,
	ITypeInterceptor interceptor


Type: System.Type
Type to intercept
Type: Microsoft.Practices.Unity.InterceptionExtension.ITypeInterceptor
Interceptor instance.

Return Value

This extension object.
© 2015 Microsoft