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

类型“<var>Type Name</var>”中的同步 OperationContract 方法“<var>Method name</var>”与基于任务的异步 OperationContract 方法“<var>X</var>”匹配,因为它们具有相同的操作名称“X”。当同步 OperationContract 方法与基于任务的异步 OperationContract 方法匹配时,必须在同步 OperationContract 方法上声明任何其他特性。在本例中,基于任务的异步 OperationContract 方法“<var>X</var>”具有一个或多个类型为“Y”的特性。若要修复此问题,请从方法“<var>X</var>”中移除“Y”特性。或者,也可以更改其中一个方法的名称以防止匹配。

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, any additional attributes must be declared on the synchronous OperationContract method. In this case, the task-based asynchronous OperationContract method '<var>X</var>' has one or more attributes of type 'Y'. To fix it, remove the 'Y' attribute or attributes from method '<var>X</var>'. Alternatively, changing the name of one of the methods will prevent matching.

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