ServiceCollection.Item[Int32] 属性

定义

获取或设置指定索引处的元素。

public:
 property Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ default[int] { Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ get(int index); void set(int index, Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ value); };
public Microsoft.Extensions.DependencyInjection.ServiceDescriptor this[int index] { get; set; }
member this.Item(int) : Microsoft.Extensions.DependencyInjection.ServiceDescriptor with get, set
Default Public Property Item(index As Integer) As ServiceDescriptor

参数

index
Int32

要获取或设置的元素的从零开始的索引。

属性值

指定索引处的元素。

实现

适用于