Message in Chinese (Traditional) (中文(繁體))
類型 '<var>Type Name</var>' 的同步 OperationContract 方法 '<var>Method name</var>' 符合以工作為基礎的非同步 OperationContract 方法 '<var>X</var>',因為它們具有相同的作業名稱 'X'。當同步 OperationContract 方法符合以工作為基礎的非同步 OperationContract 方法時,其他任何屬性皆必須在同步 OperationContract 方法上宣告。在此例中,以工作為基礎的非同步 OperationContract 方法 '<var>X</var>' 具有一或多個類型 'Y' 的屬性。若要修正此問題,請移除 'Y' 屬性,或移除方法 '<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, 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