DependencyResolverExtensions.GetService(IDependencyResolver) DependencyResolverExtensions.GetService(IDependencyResolver) DependencyResolverExtensions.GetService(IDependencyResolver) Method

Definition

Resolves singly registered services that support arbitrary object creation.

public static TService GetService<TService> (this System.Web.Mvc.IDependencyResolver resolver);
static member GetService : System.Web.Mvc.IDependencyResolver -> 'Service
<Extension()>
Public Function GetService(Of TService) (resolver As IDependencyResolver) As TService

Type Parameters

TService

The type of the requested service or object.

Parameters

resolver
IDependencyResolver IDependencyResolver IDependencyResolver

The dependency resolver instance that this method extends.

Returns

TService TService TService

The requested service or object.

Applies to