IsSingleService Method
Collapse the table of content
Expand the table of content

ControllerServices.IsSingleService Method (Type)


Queries whether a service type is single-instance.

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

Public Overrides Function IsSingleService (
	serviceType As Type
) As Boolean


Type: System.Type

The service type.

Return Value

Type: System.Boolean

true if the service type has at most one instance, or false if the service type supports multiple instances.

Return to top
© 2016 Microsoft