原文地址: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