Validates the syntax of this SelectList.
| C# | Visual Basic | Visual C++ |
public virtual void ValidateSyntax()
Public Overridable Sub ValidateSyntax
public: virtual void ValidateSyntax ()
A SelectList is valid if it is non-empty and
all its Select elements are themselves valid.
| Exception | Condition |
|---|---|
| SyntaxException |
If the SelectList is empty.
|