Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 667 Bytes

compiler-error-c2777.md

File metadata and controls

27 lines (23 loc) · 667 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2777
Compiler Error C2777
11/04/2016
C2777
C2777
5fe158c0-2a65-488a-aca2-61d4a8b32d43

Compiler Error C2777

only one 'put' method can be specified per property

A property declspec modifier had more than one put property.

The following sample generates C2777:

// C2777.cpp
struct A {
   __declspec(property(put=PutProp,put=PutPropToo))   // C2777
   // try the following line instead
   // __declspec(property(put=PutProp))
      int prop;
   int PutProp(void);
   int PutPropToo(void);
};