AttributeTableBuilder.ValidateTable Method
This method is used to verify the attribute table which is being built contains valid attribute information.
Namespace: Microsoft.Windows.Design.Metadata
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Sub ValidateTable
public void ValidateTable()
public:
void ValidateTable()
member ValidateTable : unit -> unit
public function ValidateTable()
Exceptions
Exception | Condition |
---|---|
AttributeTableValidationException | The state of the table is invalid. |
Remarks
Some overrides of the AddCustomAttributes method cannot validate that values passed to their parameters represent valid members on classes. Incorrect information passed to AddCustomAttributes may go undetected. The ValidateTable method examines the contents of the table builder and verifies that all custom attribute information has corresponding physical members.
Note
This method can be time-consuming. You should only call it when validation is absolutely needed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.