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 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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om