Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
«argumento»: argumento nomeado repetido
Observações
Um atributo não pode repetir argumentos nomeados.
Para obter mais informações, consulte atributos definidos pelo utilizador.
Example
O exemplo a seguir gera C3103.
// C3103.cpp
// compile with: /clr /c
using namespace System;
[AttributeUsage(AttributeTargets::All)]
public ref class Attr : public Attribute {
public:
int m_t;
};
[Attr(m_t = 10, m_t = 1)] // C3103
// try the following line instead
// [Attr(m_t = 10)]
ref class A {};