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)

'Declaration
Public Shared Sub SetResolver ( _
	resolver As IDependencyResolver _
)
'Usage
Dim resolver As IDependencyResolver

DependencyResolver.SetResolver(resolver)

Parameters

resolver
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.

Show: