ATTRERR
970
Description error: attribute
An error occurred on the specified attribute. Here are some possibilities:
-
“ParamArrayAttribute error: parameter not a dynamic array”: The error occurred because the parameter type must be a dynamic array.
-
“Missing device license attribute”: You compiled with the -device option but your application doesn’t contain the SynergyDeviceLicenseAttribute attribute.
-
“ObsoleteAttribute error: Constructor should have {ObsoleteAttribute} or {SetsRequiredMembersAttribute} because at least 1 REQUIRED class member is marked with {ObsoleteAttribute}”: A class has a field or property that has both the REQUIRED keyword and the {Obsolete} attribute, but not all constructors in the class are marked with ObsoleteAttribute, SetsRequiredMembersAttribute, or both. (Warning level 3)
-
“ObsoleteAttribute error: Class should have {ObsoleteAttribute} because REQUIRED member name is marked with {ObsoleteAttribute}”: When a class has at least one member that is both REQUIRED and obsolete (marked with ObsoleteAttribute), the class itself must be marked with ObsoleteAttribute. (Warning level 3)
-
“SetsRequiredMembersAttribute error: method must have SetsRequiredMembersAttribute because constructor initializer name also has that attribute”: The target constructor pointed to by the this() or parent() call has the {SetsRequiredMembers} attribute, but the constructor performing that call does not have {SetsRequiredMembers}.
-
“RequiredMemberAttribute error: Use REQUIRED keyword instead of manually applying RequiredMemberAttribute”: RequiredMemberAttribute was manually applied to a type or class member. Instead, use the REQUIRED keyword on class members.