AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.06.2011, 23:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Vincent: Managed code development in AX2012 (cont.). Proxying kernel classes.
Источник: http://blogs.msdn.com/b/vnicolas/arc...l-classes.aspx
==============

In the video from my previous post, I showed how to create managed proxies for X++ classes with the new Microsoft Dynamics AX2012 Visual Studio toolset.

X++ managed proxies allow you to invoke X++ code from managed code

Here is a brief recap on how to do that:

In Visual Studio, simply create a class library. In Solution Explorer, right click on the project and select ‘Add  a ClassLibrary to AOT’:



Then open the Application Explorer, right-click on the class you want to proxy and select ‘Add to Project’



This will add a proxy item to you project and give you full Intellisense on the proxied class from your managed code:



Now what if you want to use a kernel class such as the TreeNode? The toolset does not offer any simple gesture to add such a class to your project, but here is what you can do:

Start by adding a random X++ class as explained above. In the solution explorer, select the added proxy item and rename it by using the context menu or F2:



You can see that the actual name of the item is something like Class..axproxy.

Now replace with the name of the class you want to proxy. For example, if you want to proxy the TreeNode class, you should rename the item to Class.TreeNode.axproxy.

That’s it! You can verify that it worked by checking that the class shows up in the Intellisense:






Источник: http://blogs.msdn.com/b/vnicolas/arc...l-classes.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Vincent: Managed code development in AX2012 Blog bot DAX Blogs 0 29.04.2011 19:12
X++: Transforming X++ code to managed code: Check the video... Blog bot DAX Blogs 0 13.09.2009 01:28
Development Hole: NAICS Code Lookup - SIC Code Finder for Dynamics CRM 4.0 Blog bot Dynamics CRM: Blogs 0 13.08.2009 15:05
Передача функции в качестве параметра lemchey_white DAX: Программирование 20 21.01.2008 22:51
Вопрос про Demand Planner slava09 DAX: Функционал 4 25.09.2006 11:43

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:38.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.