CustomTaskPaneCollection.Count 屬性
取得目前 CustomTaskPaneCollection 中的 CustomTaskPane 物件數目。
命名空間: Microsoft.Office.Tools
組件: Microsoft.Office.Tools.Common (在 Microsoft.Office.Tools.Common.dll 中)
語法
'宣告
ReadOnly Property Count As Integer
Get
int Count { get; }
屬性值
型別:System.Int32
目前 CustomTaskPaneCollection 中的 CustomTaskPane 物件數目。
例外狀況
例外狀況 | 條件 |
---|---|
ObjectDisposedException | 已經在 CustomTaskPaneCollection 上呼叫過 Dispose() 方法。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。