【发布时间】:2011-12-10 23:15:03
【问题描述】:
我有以下给出错误的代码
不允许使用默认参数说明符
如何解决这个问题?
bool listSubscribe(string apikey,
string id,
string email_address,
string [] merge_vars,
string email_type="html",
bool double_optin=false,
bool replace_interests=true,
bool send_welcome=false);
bool listUnsubscribe(string apikey,
string id,
string email_address,
bool delete_menber=false,
bool send_goodbye=true,
bool send_notify=true);
【问题讨论】:
-
您的目标是 .NET 4.0 吗? Visual Studio 2010?
-
您使用的是哪个版本的 Visual Studio 和哪个 .NET 框架?这些方法是在 Web 表单中还是在什么类中?
-
我使用的是 3.5 .NET Framework
-
你需要在项目属性中设置语言版本,见stackoverflow.com/a/8325095/451495