ServiceManager.Contains Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Contains(Type) | Returns a Boolean value that indicates whether the service manager contains a service of the given type. | 
| Contains<TServiceType>() | Returns a value that indicates whether the service manager contains a service of the given type. | 
Contains(Type)
Returns a Boolean value that indicates whether the service manager contains a service of the given type.
public:
 abstract bool Contains(Type ^ serviceType);public abstract bool Contains(Type serviceType);abstract member Contains : Type -> boolPublic MustOverride Function Contains (serviceType As Type) As BooleanParameters
- serviceType
- Type
The type of service to check.
Returns
true if a service of type serviceType has been published; otherwise, false.
Applies to
Contains<TServiceType>()
Returns a value that indicates whether the service manager contains a service of the given type.
public:
generic <typename TServiceType>
 bool Contains();public bool Contains<TServiceType>();member this.Contains : unit -> boolPublic Function Contains(Of TServiceType) () As BooleanType Parameters
- TServiceType
The type of service to check.
Returns
true if a service of type TServiceType has been published; otherwise, false.