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
)
參數
control
Type: System.Web.UI.Control子控制項。
type
Type: System.Type控制項的類型。
傳回值
Type: System.Web.UI.Control
找出指定的類型的控制項樹狀目錄中第一個控制項。