This documentation is archived and is not being maintained.

CustomTaskPaneCollection.Remove Method

Removes the specified CustomTaskPane from the CustomTaskPaneCollection.

Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common2007 (in microsoft.office.tools.common2007.dll)

public bool Remove (
	CustomTaskPane customTaskPane
)

Parameters

customTaskPane

The CustomTaskPane to remove from the collection.

Return Value

true if the CustomTaskPane was successfully removed from the collection; false if the collection does not contain the specified CustomTaskPane.

Exception typeCondition

ArgumentNullException

customTaskPane is a null reference (Nothing in Visual Basic).

ObjectDisposedException

The Dispose method has already been called on the CustomTaskPaneCollection.

Show: