ServiceCollection.Contains(ServiceDescriptor) Methode

Definition

Bestimmt, ob der ICollection<T> Wert einen bestimmten Wert enthält.

public:
 virtual bool Contains(Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ item);
public bool Contains(Microsoft.Extensions.DependencyInjection.ServiceDescriptor item);
abstract member Contains : Microsoft.Extensions.DependencyInjection.ServiceDescriptor -> bool
override this.Contains : Microsoft.Extensions.DependencyInjection.ServiceDescriptor -> bool
Public Function Contains (item As ServiceDescriptor) As Boolean

Parameter

item
ServiceDescriptor

Das Objekt, das in der ICollection<T>Datei gefunden werden soll.

Gibt zurück

true if item is found in the ICollection<T>; otherwise, false.

Implementiert

Gilt für: