Message in Chinese (Simplified) (中文(简体))

类型“<var>Type Name</var>”中的同步 OperationContract 方法“<var>Method name</var>”与异步 OperationContract 方法“<var>X</var>”和“<var>Y</var>”匹配,因为它们具有相同的操作名称“<var>Z</var>”。当同步 OperationContract 方法与一对异步 OperationContract 方法匹配时,这两个 OperationContracts 必须定义相同的返回类型。在此情况下,返回类型不同。要解决此问题,请确保方法“<var>Method name</var>”和方法“<var>Y</var>”具有相同的返回类型。此外,更改其中一个方法的名称将阻止匹配。

Unlocalized message

The synchronous OperationContract method '<var>Method name</var>' in type '<var>Type Name</var>' was matched with the asynchronous OperationContract methods '<var>X</var>' and '<var>Y</var>' because they have the same operation name '<var>Z</var>'. When a synchronous OperationContract method is matched to a pair of asynchronous OperationContract methods, 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>Y</var>' have the same return type. Alternatively, changing the name of one of the methods will prevent matching.

Search by Google
Available localized messages
Arabic (العربية) Chinese (Traditional) (中文(繁體)) Czech (Čeština) Finnish (suomi) French (Français) German (Deutsch) Greek (Ελληνικά) Hebrew (עברית) Prior (Message) Hungarian (magyar) Italian (Italiano) Japanese (日本語) Korean (한국어) Norwegian (Bokmal) (Norsk (Bokmål)) Polish (Polski) Portuguese (Brazil) (Português (Brasil)) Russian (Русский) Danish (Dansk) Next (Message) Dutch (Nederlands) Chinese (Simplified) (中文(简体)) Spanish (Español) Swedish (Svenska) Turkish (Türkçe) Chinese (Traditional) (中文(繁體))