Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DependencyResolver.SetResolver Method (Func(Of Type, Object), Func(Of Type, IEnumerable(Of Object)))

Provides a registration point for dependency resolvers using the specified service delegate and specified service collection delegates.

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

Public Shared Sub SetResolver ( _
	getService As Func(Of Type, Object), _
	getServices As Func(Of Type, IEnumerable(Of Object)) _
Dim getService As Func(Of Type, Object)
Dim getServices As Func(Of Type, IEnumerable(Of Object))

DependencyResolver.SetResolver(getService, getServices)


Type: System.Func(Of Type, Object)

The service delegate.

Type: System.Func(Of Type, IEnumerable(Of Object))

The services delegates.

For more information about DependencyResolver, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.

© 2015 Microsoft