다음을 통해 공유


ProfilePropertyLoader.FindControlHelper Method

Searches the control collection for a control of the specified type.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Public Shared Function FindControlHelper ( _
    cRoot As ControlCollection, _
    controlType As Type _
) As Control
'Usage
Dim cRoot As ControlCollection
Dim controlType As Type
Dim returnValue As Control

returnValue = ProfilePropertyLoader.FindControlHelper(cRoot, _
    controlType)
public static Control FindControlHelper(
    ControlCollection cRoot,
    Type controlType
)

Parameters

  • controlType
    Type: System.Type

    The type of the control to be found.

Return Value

Type: System.Web.UI.Control
The first control found that matches the type.

Remarks

This method returns null if the control collection is null , or if the control cannot be found.

See Also

Reference

ProfilePropertyLoader Class

ProfilePropertyLoader Members

Microsoft.SharePoint.Portal.WebControls Namespace