AttributeTableBuilder.ValidateTable 方法
定义
验证所生成的特性表是否包含有效的特性信息。Verifies that the attribute table that is being built contains valid attribute information.
public:
void ValidateTable();
public void ValidateTable ();
member this.ValidateTable : unit -> unit
Public Sub ValidateTable ()
例外
该表的状态无效。the state of the table is invalid.
注解
的某些重写 AddCustomAttributes 不能验证传递给其参数的值是否表示类的有效成员。Some overrides of AddCustomAttributes cannot validate that values passed to their parameters represent valid members on classes. ValidateTable 验证所有自定义特性信息是否对应于实际成员。ValidateTable verifies that all custom attribute information corresponds to actual members. 此方法可能需要很长时间才能完成,因此除非明确需要验证,否则不建议使用此方法。This method can take a long time to complete and is not recommended unless validation is explicitly needed.