Workspace.Show Method (Object, ISmartPartInfo)
Shows SmartPart using the given ISmartPartInfo.
Namespace: Microsoft.Practices.CompositeUI.SmartParts
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)
Syntax
'Declaration
Public Sub Show ( _
smartPart As Object, _
smartPartInfo As ISmartPartInfo _
)
'Usage
Dim instance As Workspace(Of TSmartPart, TSmartPartInfo)
Dim smartPart As Object
Dim smartPartInfo As ISmartPartInfo
instance.Show(smartPart, smartPartInfo)
public void Show (
Object smartPart,
ISmartPartInfo smartPartInfo
)
public:
virtual void Show (
Object^ smartPart,
ISmartPartInfo^ smartPartInfo
) sealed
public final void Show (
Object smartPart,
ISmartPartInfo smartPartInfo
)
public final function Show (
smartPart : Object,
smartPartInfo : ISmartPartInfo
)
Parameters
- smartPart
- smartPartInfo
Exceptions
Exception type | Condition |
---|---|
The smartPart cannot be assigned to TSmartPart. |
Remarks
If the smartPart was previously shown, ApplySmartPartInfo and Activate will be called. Otherwise, OnShow is called.
See Also
Reference
Workspace Class
Workspace Members
Microsoft.Practices.CompositeUI.SmartParts Namespace