共用方式為


AdoDotNetConnectionProperties.ICollection.Count 屬性

擷取目前 ICollection執行個體中的元素數。

命名空間:  Microsoft.VisualStudio.Data.AdoDotNet
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
Private ReadOnly Property Count As Integer
    Implements ICollection.Count
int ICollection.Count { get; }
private:
virtual property int Count {
    int get () sealed = ICollection::Count::get;
}
private abstract Count : int
private override Count : int
JScript 不支援明確介面實作。

屬性值

型別:System.Int32
傳回 ICollection 中包含的項目數目。

實作

ICollection.Count

備註

這個方法會提供 Count 屬性的實作。如需詳細資訊 .NET Framework 在類別庫中看到 Count 屬性。

.NET Framework 安全性

請參閱

參考

AdoDotNetConnectionProperties 類別

Microsoft.VisualStudio.Data.AdoDotNet 命名空間