此语法有什么问题?我尝试了30分钟左右的不同方式。 Intellisense不会强调任何内容,但不会进行编译。如果需要更多信息,请提前告诉我。
WSHttpBinding^ binding = gcnew WSHttpBinding();
TimeSpan^ t = gcnew TimeSpan->MaxValue;
binding->ReceiveTimeout = *t;
答案 0 :(得分:-1)
我找到了答案:
WSHttpBinding^ binding = gcnew WSHttpBinding();
binding->ReceiveTimeout = System::TimeSpan::MaxValue;