Message in Chinese (Simplified) (中文(简体))
类型“<var>Type Name</var>”中的同步 OperationContract 方法“<var>Method name</var>”与基于任务的异步 OperationContract 方法“<var>X</var>”匹配,因为它们具有相同的操作名称“X”。当同步 OperationContract 方法与基于任务的异步 OperationContract 方法匹配时,两个 OperationContract 必须定义相同的返回类型。在本例中,返回类型不同。若要修复此问题,请确保方法“<var>Method name</var>”和方法“<var>X</var>”具有相同的返回类型。或者,也可以更改其中一个方法的名称以防止匹配。
Unlocalized message
The synchronous OperationContract method '<var>Method name</var>' in type '<var>Type Name</var>' was matched with the task-based asynchronous OperationContract method '<var>X</var>' because they have the same operation name 'X'. When a synchronous OperationContract method is matched to a task-based asynchronous OperationContract method, the two OperationContracts must define the same return type. In this case, the return types are different. To fix it, ensure that method '<var>Method name</var>' and method '<var>X</var>' have the same return type. Alternatively, changing the name of one of the methods will prevent matching.
Search by Google