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

DependencyResolver::SetResolver Method (Object)

Provides a registration point for dependency resolvers using the provided common service locator when using a service locator interface.

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

static void SetResolver(
	Object^ commonServiceLocator


Type: System::Object
The common service locator.

The commonServiceLocator parameter can be an instance of IDependencyResolver or an object that implements the Common Service Locator IServiceLocator interface. For more information about Common Service Locator, see Common Service Locator Library on the CodePlex Web site. For more information about DependencyResolver, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.

© 2015 Microsoft