ThrowArgumentException Method
Throws the argument exception.
Syntax
'Declaration Public Shared Sub ThrowArgumentException( _ ByVal invalid As Boolean, _ ByVal argumentName As String, _ ByVal message As String _ )
'Usage Dim invalid As Boolean Dim argumentName As String Dim message As String ThrowHelper.ThrowArgumentException(invalid, argumentName, message)
Parameters
- invalid
- if set to
true
[invalid]. - argumentName
- Name of the argument.
- message
- The message.
Exceptions
Exception | Description |
---|---|
System.ArgumentException | throws an instance ArgumentException |
Requirements
Target Platforms: 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