Workspace.Show Method (Object)

Locates an appropriate ISmartPartInfo compatible with the type TSmartPartInfo, and calls Show(Object,ISmartPartInfo).

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

Syntax

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

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

Parameters

  • smartPart

Exceptions

Exception type Condition

ArgumentException

The smartPart cannot be assigned to TSmartPart.

Remarks

If WorkItem is not null, GetSmartPartInfo will be called for the TSmartPartInfo concrete type. If no value is returned, it will be called again for a generic SmartPartInfo. Finally, if no generic info is registered either, a new default instance of the TSmartPartInfo will be used by calling the CreateDefaultSmartPartInfo method and finally passed to the Show(Object,ISmartPartInfo) overload.

See Also

Reference

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