CustomTaskPaneCollection.Count Property
Gets the number of CustomTaskPane objects in the current CustomTaskPaneCollection.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
ReadOnly Property Count As Integer
int Count { get; }
Property Value
Type: System.Int32
The number of CustomTaskPane objects in the current CustomTaskPaneCollection.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The Dispose() method has already been called on the CustomTaskPaneCollection. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.