Editare

Partajați prin


ServiceManager.Contains Method

Definition

Overloads

Contains(Type)

Returns a Boolean value that indicates whether the service manager contains a service of the given type.

Contains<TServiceType>()

Returns a Boolean 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 -> bool
Public MustOverride Function Contains (serviceType As Type) As Boolean

Parameters

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 Boolean 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 -> bool
Public Function Contains(Of TServiceType) () As Boolean

Type Parameters

TServiceType

The type of service to check.

Returns

true if a service of type serviceType has been published; otherwise, false.

Applies to