共用方式為


ProfilePropertyLoader.FindControl Method

Searches the page controls 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 FindControl ( _
    objPage As Page, _
    controlType As Type _
) As Control
'Usage
Dim objPage As Page
Dim controlType As Type
Dim returnValue As Control

returnValue = ProfilePropertyLoader.FindControl(objPage, _
    controlType)
public static Control FindControl(
    Page objPage,
    Type controlType
)

Parameters

  • controlType
    Type: System.Type

    The Type of 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 objPage is null , or if a control is not found.

See Also

Reference

ProfilePropertyLoader Class

ProfilePropertyLoader Members

Microsoft.SharePoint.Portal.WebControls Namespace