DependencyResolverExtensions::GetService<TService> Method (IDependencyResolver^)

 

Resolves singly registered services that support arbitrary object creation.

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

public:
generic<typename TService>
[ExtensionAttribute]
static TService GetService(
	IDependencyResolver^ resolver
)

Parameters

resolver
Type: System.Web.Mvc::IDependencyResolver^

The dependency resolver instance that this method extends.

Return Value

Type: TService

The requested service or object.

Type Parameters

TService

The type of the requested service or object.

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

Return to top
Show: