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)


Public Function Contains(Of TServiceType) As Boolean
Dim instance As ServiceCollection
Dim returnValue As Boolean

returnValue = instance.Contains()
public bool Contains<TServiceType>()
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


ServiceCollection Class

Contains Overload

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