不能为同一类型多次指定参数“Structure”约束'Structure' constraint cannot be specified multiple times for the same type parameter

约束列表多次包括 结构 (Visual Basic) 约束。A constraint list includes the Structure (Visual Basic) constraint more than once.

类型形参上的约束列表可以指定传递到该类型形参的类型实参必须是值类型(具有 Structure 约束)或者必须是引用类型(具有 Class (Visual Basic) 约束)。A constraint list on a type parameter can specify that the type argument passed to that type parameter must be a value type (with the Structure constraint) or must be a reference type (with the Class (Visual Basic) constraint). 不能为同一类型形参同时指定两个约束,并且不能多次指定其中任意一个约束。You cannot specify both constraints on the same type parameter, and you cannot specify either one more than once.

错误 ID:BC32102Error ID: BC32102

更正此错误To correct this error

  • 删除任何多余的 Structure 关键字。Remove any redundant Structure keywords. 约束列表中只能有一个关键字。You should have only one in the constraint list.

另请参阅See also