ServiceCollection.GetEnumerator 方法
定义
返回一个循环访问集合的枚举器。Returns an enumerator that iterates through the collection.
public:
virtual System::Collections::Generic::IEnumerator<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<Microsoft.Extensions.DependencyInjection.ServiceDescriptor> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
Public Function GetEnumerator () As IEnumerator(Of ServiceDescriptor)
返回
用于循环访问集合的枚举数。An enumerator that can be used to iterate through the collection.