Share via


ServicesContainer.IsSingleService Method (Type)

 

Determine whether the service type should be fetched with GetService or GetServices.

Namespace:   System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public abstract bool IsSingleService(
    Type serviceType
)
public:
virtual bool IsSingleService(
    Type^ serviceType
) abstract
abstract IsSingleService : 
        serviceType:Type -> bool
Public MustOverride Function IsSingleService (
    serviceType As Type
) As Boolean

Parameters

  • serviceType
    Type: System.Type

    type of service to query

Return Value

Type: System.Boolean

true iff the service is singular.

See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top