The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Compiler Error C3819


wrong number of parameters in 'property'

An accessor function for a __property had the wrong number of parameters.

C3819 is only reachable using /clr:oldSyntax.

The following sample generates C3819:

// C3819.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>
using namespace System;

__gc struct AtClass {
   __property int get_bad() {
      return _i;

   __property void set_bad() {   // C3819

   // uncomment this access definition to resolve
   __property void set_bad(int i) {
      _i = i;
   int _i;

int main() {