Version

ValidationGroup Constructor(String)

Creates a new instance of the ValidationGroup class with the specified key.
Syntax
'Declaration
 
Public Function New( _
   ByVal key As String _
)
public ValidationGroup( 
   string key
)

Parameters

key
The unique identifier within the owning ValidationGroups collection for this instance. Cannot be null (Nothing in VB) or empty.
Exceptions
ExceptionDescription
System.ExceptionThrown if the specified key is null (Nothing in VB) or empty.
Remarks

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.

Requirements

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

See Also