Workspace.Close Method

Closes the smart part and resets (sets to null) the ActiveSmartPart.

Namespace: Microsoft.Practices.CompositeUI.SmartParts
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Sub Close ( _
    smartPart As Object _
)
'Usage
Dim instance As Workspace(Of TSmartPart, TSmartPartInfo)
Dim smartPart As Object

instance.Close(smartPart)
public void Close (
    Object smartPart
)
public:
virtual void Close (
    Object^ smartPart
) sealed
public final void Close (
    Object smartPart
)
public final function Close (
    smartPart : Object
)

Parameters

  • smartPart

Exceptions

Exception type Condition

ArgumentException

The smartPart was not previously shown in the workspace.

ArgumentException

The smartPart cannot be assigned to TSmartPart.

See Also

Reference

Workspace Class
Workspace Members
Microsoft.Practices.CompositeUI.SmartParts Namespace