ServiceCollection.Contains(ServiceDescriptor) Method
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.
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
- item
- ServiceDescriptor
The object to locate in the ICollection<T>.
true
if item
is found in the ICollection<T>; otherwise, false
.
Produk | Versi |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: