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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για