SetResolver Method (IDependencyResolver)

DependencyResolver.SetResolver Method (IDependencyResolver)

Provides a registration point for dependency resolvers, using the specified dependency resolver interface.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public static function SetResolver(
	resolver : IDependencyResolver


Type: System.Web.Mvc.IDependencyResolver
The dependency resolver.

Use this method when you have an implementation of IDependencyResolver. For more information about DependencyResolver, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.

© 2016 Microsoft