ServiceCollection.Count 屬性

定義

取得參考集合中的 Service 物件數目。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

屬性值

Int32

Int32 值,指定參考集合中 Service 物件的數目。

實作

範例

使用集合

適用於