AVEVA OMI Software Developer Kit



ArchestrA.Client.CommonUtil Namespace > ThrowHelper Class : ThrowIfArgumentNull<T> Method
type
The argument.
Name of the argument.
ThrowIfArgumentNull<T> Method
Throws if argument is null.
Syntax
'Declaration
 
Public Shared Sub ThrowIfArgumentNull(Of T As Class)( _
   ByVal argument As T, _
   ByVal argumentName As String _
) 
'Usage
 
Dim argument As T
Dim argumentName As String
 
ThrowHelper.ThrowIfArgumentNull(Of T)(argument, argumentName)
public static void ThrowIfArgumentNull<T>( 
   T argument,
   string argumentName
)
where T: class
public:
static void ThrowIfArgumentNullgeneric<typename T>
( 
   T^ argument,
   String^ argumentName
) 
where T: ref class

Parameters

argument
The argument.
argumentName
Name of the argument.

Type Parameters

T
type
Exceptions
ExceptionDescription
throws an instance of ArgumentNullException
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