Exception | Description |
---|---|
System.Exception | Thrown if the specified key is null (Nothing in VB) or empty. |
A non-empty, Key that is unique across all members of the ValidationGroups collection is required for each ValidationGroup. The key is verified at the time of instantiation to ensure that the value is non-empty; if it is null or empty, an exception is thrown. The uniqueness of the key is verified when the instance is added to the ValidationGroups collection; if it is already in use, and exception is thrown.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2