DefaultServices.IsSingleService Method (Type)

 

Queries whether a service type is single-instance.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean

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

See Also

DefaultServices Class
System.Web.Http.Services Namespace

Return to top