ServiceCollection.Contains(ServiceDescriptor) Metoda

Definice

Určuje, zda ICollection<T> obsahuje konkrétní hodnotu.

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

Parametry

item
ServiceDescriptor

Objekt, který chcete vyhledat v ICollection<T>.

Návraty

true pokud item v ICollection<T>; jinak false.

Implementuje

Platí pro