SPUtility.GetParentControl-Methode
Das Steuerelement, das übergeordnete Element eines angegebenen Steuerelements zurück.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetParentControl ( _
control As Control, _
type As Type _
) As Control
'Usage
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
)
Parameter
control
Typ: System.Web.UI.ControlDas untergeordnete Steuerelement.
type
Typ: System.TypeDer Typ des übergeordneten Steuerelements.
Rückgabewert
Typ: System.Web.UI.Control
Das erste Steuerelement in der Steuerelementstruktur, die dem angegebenen Typ übereinstimmt.