AVEVA OMI Software Developer Kit



ArchestrA.Client.CommonUtil Namespace > ThrowHelper Class : ThrowArgumentException Method
if set to true [invalid].
Name of the argument.
The message.
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)
public static void ThrowArgumentException( 
   bool invalid,
   string argumentName,
   string message
)
public:
static void ThrowArgumentException( 
   bool invalid,
   String^ argumentName,
   String^ message
) 

Parameters

invalid
if set to true [invalid].
argumentName
Name of the argument.
message
The message.
Exceptions
ExceptionDescription
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