Contains(TServiceType) Method

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 Function Contains(Of TServiceType) As Boolean
'Usage
Dim instance As ServiceCollection
Dim returnValue As Boolean

returnValue = instance.Contains()
public bool Contains<TServiceType>()
public:
generic<typename TServiceType>
bool Contains()
member Contains : unit -> bool 
JScript does not support generic types and methods.

Type Parameters

  • TServiceType

Return Value

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

See Also

Reference

ServiceCollection Class

Contains Overload

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