Поділитися через


ServiceCollection.Contains(ServiceDescriptor) Method

Definition

Determines whether the ICollection<T> contains a specific value.

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

Parameters

item
ServiceDescriptor

The object to locate in the ICollection<T>.

Returns

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

Implements

Applies to