0 out of 1 rated this helpful - Rate this topic

IDependencyResolver.GetService Method

Resolves singly registered services that support arbitrary object creation.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type
The type of the requested service or object.

Return Value

Type: System.Object
The requested service or object.

Implementers should return null when the service cannot be found. Use GetServices(Type) to return multiple services.

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.