Workspace.ApplySmartPartInfo Method
Applies the smartPartInfo to the smartPart.
Namespace: Microsoft.Practices.CompositeUI.SmartParts
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)
Syntax
'Declaration
Public Sub ApplySmartPartInfo ( _
smartPart As Object, _
smartPartInfo As ISmartPartInfo _
)
'Usage
Dim instance As Workspace(Of TSmartPart, TSmartPartInfo)
Dim smartPart As Object
Dim smartPartInfo As ISmartPartInfo
instance.ApplySmartPartInfo(smartPart, smartPartInfo)
public void ApplySmartPartInfo (
Object smartPart,
ISmartPartInfo smartPartInfo
)
public:
virtual void ApplySmartPartInfo (
Object^ smartPart,
ISmartPartInfo^ smartPartInfo
) sealed
public final void ApplySmartPartInfo (
Object smartPart,
ISmartPartInfo smartPartInfo
)
public final function ApplySmartPartInfo (
smartPart : Object,
smartPartInfo : ISmartPartInfo
)
Parameters
- smartPart
- smartPartInfo
Exceptions
Exception type | Condition |
---|---|
The smartPart was not previously shown in the workspace. |
|
ArgumentException |
The smartPart cannot be assigned to TSmartPart. |
Remarks
Applying the smartPartInfo does not cause automatic activation of the smartPart.
See Also
Reference
Workspace Class
Workspace Members
Microsoft.Practices.CompositeUI.SmartParts Namespace