Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
cRoot
Type: System.Web.UI.ControlCollectionThe control collection to be searched.
controlType
Type: System.TypeThe 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.