ServiceCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定位於指定索引處的專案。
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
要取得或設定的元素的零基指數。
屬性值
位於指定索引的元素。