返回的父级的指定控件的控件。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型:System.Web.UI.Control子控件。
type
类型:System.Type父控件的类型。
返回值
类型:System.Web.UI.Control
匹配指定的类型的控件树中的第一个控件。