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)

Syntax

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

DependencyResolver.SetResolver(resolver)
public static void SetResolver(
    IDependencyResolver resolver
)
public:
static void SetResolver(
    IDependencyResolver^ resolver
)
static member SetResolver : 
        resolver:IDependencyResolver -> unit
public static function SetResolver(
    resolver : IDependencyResolver
)

Parameters

Remarks

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.

See Also

Reference

DependencyResolver Class

SetResolver Overload

System.Web.Mvc Namespace