Jaa


xMenuFunction.newmethod(String, MenuItemType) Method

Definition

Creates a new xMenuFunction object by passing xMenuFunction's name and MenuItemType to the xMenuFunction constructor.

public:
 void newmethod(System::String ^ _Name, Dynamics::AX::Application::MenuItemType _type);
public void newmethod (string _Name, Dynamics.AX.Application.MenuItemType _type);
override this.newmethod : string * Dynamics.AX.Application.MenuItemType -> unit
Public Sub newmethod (_Name As String, _type As MenuItemType)

Parameters

_Name
String

A constant in the MenuItemType system enumeration: MenuItemType::Display, MenuItemType::Output, or MenuItemType::Action.

_type
MenuItemType

A constant in the MenuItemType system enumeration: MenuItemType::Display, MenuItemType::Output, or MenuItemType::Action.

Remarks

When creating a xMenuFunction object, the parameters must uniquely identify an existing xMenuFunction. If not, Exception::Internal is thrown.

Applies to