WorkItem.GetSmartPartInfo Generic Method

Returns smart part information for a control.

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

Syntax

'Declaration
Public Function GetSmartPartInfo(Of TSmartPartInfo As ISmartPartInfo) ( _
    smartPart As Object _
) As TSmartPartInfo
'Usage
Dim instance As WorkItem
Dim smartPart As Object
Dim returnValue As TSmartPartInfo

returnValue = instance.GetSmartPartInfo(smartPart)
public TSmartPartInfo GetSmartPartInfo<TSmartPartInfo> (
    Object smartPart
) where TSmartPartInfo : ISmartPartInfo
public:
generic<typename TSmartPartInfo> where TSmartPartInfo : ISmartPartInfo
TSmartPartInfo GetSmartPartInfo (
    Object^ smartPart
)
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.

Parameters

  • smartPart
    The smartPart which to retreive the smart part info for.

Return Value

The ISmartPartInfo for the control and type requested, or null if no one is registered.

See Also

Reference

WorkItem Class
WorkItem Members
Microsoft.Practices.CompositeUI Namespace