Message in Chinese (Traditional) (中文(繁體))
類型 '<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