共用方式為


SPUtility.GetParentControl method

會傳回父項的指定控制項的控制項。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Function GetParentControl ( _
    control As Control, _
    type As Type _
) As Control
'用途
Dim control As Control
Dim type As Type
Dim returnValue As Control

returnValue = SPUtility.GetParentControl(control, _
    type)
public static Control GetParentControl(
    Control control,
    Type type
)

參數

傳回值

Type: System.Web.UI.Control
找出指定的類型的控制項樹狀目錄中第一個控制項。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace