ToolBarMenuButton.GetMenuControl method
Gets a menu control.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetMenuControl ( _
childControl As Control _
) As ToolBarMenuButton
'Usage
Dim childControl As Control
Dim returnValue As ToolBarMenuButton
returnValue = ToolBarMenuButton.GetMenuControl(childControl)
public static ToolBarMenuButton GetMenuControl(
Control childControl
)
Parameters
childControl
Type: System.Web.UI.ControlA child control.
Return value
Type: Microsoft.SharePoint.WebControls.ToolBarMenuButton
The control.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The childControl input parameter is null. |