DefaultServices.IsSingleService Method
Queries whether a service type is single-instance.
Namespace: System.Web.Http.Services
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overrides Function IsSingleService ( _
serviceType As Type _
) As Boolean
'Usage
Dim instance As DefaultServices
Dim serviceType As Type
Dim returnValue As Boolean
returnValue = instance.IsSingleService(serviceType)
public override bool IsSingleService(
Type serviceType
)
public:
virtual bool IsSingleService(
Type^ serviceType
) override
abstract IsSingleService :
serviceType:Type -> bool
override IsSingleService :
serviceType:Type -> bool
public override function IsSingleService(
serviceType : Type
) : boolean
Parameters
serviceType
Type: System.TypeThe 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.