WinDataDrivenAdapter.FindMenuItem Method (String, Boolean, IntPtr, Int32, Int32)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
Finds the menu item associated with a control.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Syntax
protected bool FindMenuItem(
string controlName,
bool throwExceptionIfNotFound,
out IntPtr hMenu,
out int subMenuIndex,
out int hMenuItemId
)
Protected Function FindMenuItem (
controlName As String,
throwExceptionIfNotFound As Boolean,
<OutAttribute> ByRef hMenu As IntPtr,
<OutAttribute> ByRef subMenuIndex As Integer,
<OutAttribute> ByRef hMenuItemId As Integer
) As Boolean
Parameters
controlName
Type: System.StringSpecifies the name of the control.
throwExceptionIfNotFound
Type: System.BooleanContains a Boolean value that, when true, throws DataDrivenAdapterException if the control isn’t found.
hMenu
Type: System.IntPtrSpecifies the handler for the menu item.
subMenuIndex
Type: System.Int32Specifies the submenu index.
hMenuItemId
Type: System.Int32Specifies the Id of the menu item control.
Return Value
Type: System.Boolean
Type: Boolean
true if it finds the control; otherwise, false.
See Also
WinDataDrivenAdapter Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright