Freigeben über


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

  • type
    Typ: System.Type

    Der Typ des übergeordneten Steuerelements.

Rückgabewert

Typ: System.Web.UI.Control
Das erste Steuerelement in der Steuerelementstruktur, die dem angegebenen Typ übereinstimmt.

Siehe auch

Referenz

SPUtility Klasse

SPUtility-Member

Microsoft.SharePoint.Utilities-Namespace