Share via


Contains Method (Type)

Returns true if the service collection contains a service of the given type.

Namespace:  Microsoft.Data.Tools.Design.Core.Context
Assembly:  Microsoft.Data.Tools.Design.Core (in Microsoft.Data.Tools.Design.Core.dll)

Syntax

'Declaration
Public MustOverride Function Contains ( _
    serviceType As Type _
) As Boolean
'Usage
Dim instance As ServiceCollection
Dim serviceType As Type
Dim returnValue As Boolean

returnValue = instance.Contains(serviceType)
public abstract bool Contains(
    Type serviceType
)
public:
virtual bool Contains(
    Type^ serviceType
) abstract
abstract Contains : 
        serviceType:Type -> bool 
public abstract function Contains(
    serviceType : Type
) : boolean

Parameters

Return Value

Type: System..::..Boolean
True if a service of type serviceType has been published.

Exceptions

Exception Condition
ArgumentNullException

if serviceType is null.

See Also

Reference

ServiceCollection Class

Contains Overload

Microsoft.Data.Tools.Design.Core.Context Namespace