最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

[转]Microsoft Dynamics AX Client server method keywords

Uncategorized William 2234浏览 0评论

原文地址:http://axdaily.blogspot.com/2010/01/client-server-method-keywords.html

There is a difference between declaring a static method with both client and server keywords and without any:

public static client server void  method1()
{
}

and

public static void  method2()
{
}

If a method is declared without these keywords the tier to execute the method will be determined based on RunOn property of the class. So if a class has RunOn property equals to “Client”, then method2() will always be called on the client tier but method1() will be called on the tier where it was called from.
Considering that it is a best practice to explicitly mark methods with both client and server keywords if it is designed to be executed on both tiers.

转载请注明:ww12345678 的部落格 | AX Helper » [转]Microsoft Dynamics AX Client server method keywords

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址