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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.02.2011, 23:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
sumitax: Reading XML Documentation
Источник: http://sumitax.wordpress.com/2011/02...documentation/
==============

 

In my current project, I created a Automation testing solution using Unit Test Framework (UTF) .For retreving XML documentation from method (which contains what is purpose of method and what are parameters name and type ) .Following is code to access the string under XML documentation:

X++:
static void SUMIReadClassmethod(Args _args)

{

 SysDictClass dct;
 str Source ;
 Object objMethod;
 DictMethod dm;
 container conLines;
 TextBuffer textBuffer = new TextBuffer();
 Set dictClassMethodSet ;
 SetEnumerator enum;
 SysDictMethod dictMethod;
 #SysBpCheck
 FreeText ft

 ;
 dct = new SysDictClass(ClassName2id(classnode.AOTname()));
 dictClassMethodSet = dct.methods(true, true, true);

 dictClassMethodSet.add(new SysDictMethod(UtilElementType::ClassInstanceMethod,  (classnode.AOTname()), #MethodNameClassDeclaration));

 enum = dictClassMethodSet.getEnumerator();

 textbuffer = null;

 textBuffer = new TextBuffer();
 while (enum.moveNext())
 {
 dictMethod = enum.current();
 textBuffer.appendText(dictMethod.xmlDocumentation());


 }

}



Источник: http://sumitax.wordpress.com/2011/02...documentation/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dax-lessons: Generate XML Documentation Files for a project – DAX 2009 Blog bot DAX Blogs 0 14.12.2010 10:11
dax-ideas: Reading an XML file in AX 2009 Blog bot DAX Blogs 0 16.11.2010 22:11
workflowax: Documentation and Further Reading Blog bot DAX Blogs 0 02.07.2010 18:05
dax-lessons: Generate XML Documentation Files for a project - DAX 2009 Blog bot DAX Blogs 0 04.05.2009 14:05
dax-lessons: Generate XML Documentation Files for a project - DAX 2009 Blog bot DAX Blogs 0 08.08.2008 19:06

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:35.