ToolBarMenuButton.GetMenuControl Method
Gets a menu control.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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. |